On ARM systems, whether old-ABI or EABI is being used is encoded in the fourth part of the target triple (-gnu for old-ABI, -gnueabi for EABI.) The binutils spec file redefines _gnu to %{nil}, which causes the fourth part of the target triple to be left out entirely when passed to configure, and causes binutils to build for old-ABI even on EABI systems. The attached patch makes redefining _gnu to %{nil} conditional on not building for an ARM system, and fixes the build for ARM EABI.
Created attachment 156641 [details] Spec file patch for binutils 2.17.50.0.12-4.
arm macro isn't defined in standard rawhide rpm nor redhat-rpm-config.
Ping. Can you first get this macro defined into rpm or at least redhat-rpm-config before spec files start using it?
Sorry for the delay in response. This macro (along with other ARM changes) just got merged into the upstream version of rpm: https://www.redhat.com/archives/fedora-arm/2007-June/msg00002.html However, this change has not trickled down into the rawhide version of rpm yet. If you want that to happen first, please let me know and I'll get back to you on this when that has happened.
The rawhide rpm now defines %{arm}.