From: Michael Tremer Date: Thu, 22 Dec 2011 17:12:13 +0000 (+0100) Subject: binutils: Make package work on x86_64. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb86d46e4b2e190be17a98b95dfb7036fb5a68ec;p=ipfire-3.x.git binutils: Make package work on x86_64. --- diff --git a/binutils/binutils.nm b/binutils/binutils.nm index 8879700fe..2ed2fd151 100644 --- a/binutils/binutils.nm +++ b/binutils/binutils.nm @@ -5,7 +5,7 @@ name = binutils version = 2.22 -release = 1 +release = 2 maintainer = Michael Tremer groups = Development/Tools @@ -41,21 +41,15 @@ build sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in} end + configure_options += \ + --target=%{DISTRO_BUILDTARGET} \ + --disable-werror \ + --disable-static build - BINUTILS_TARGET_PLATFORM=$(echo "%{DISTRO_MACHINE}" | sed -e "s/-gnu//") - cd %{DIR_SRC}/binutils-build ../%{thisapp}/configure \ - --host=${BINUTILS_TARGET_PLATFORM} \ - --build=${BINUTILS_TARGET_PLATFORM} \ - --target=${BINUTILS_TARGET_PLATFORM} \ - --prefix=/usr \ - --mandir=/usr/share/man \ - --enable-shared \ - --disable-nls \ - --disable-werror \ - --disable-static + %{configure_options} make tooldir=/usr %{PARALLELISMFLAGS} end @@ -73,12 +67,12 @@ build # Prevent packages from linking against libbfd and libopcodes, # because they change too often. - rm -rfv %{BUILDROOT}/usr/lib/lib{bfd,opcodes}.so + rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so end # Keep static version of libiberty. keep_libraries - /usr/lib/libiberty.a + %{libdir}/libiberty.a end end