]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
binutils: Package libiberty.a.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Nov 2011 15:22:09 +0000 (16:22 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Nov 2011 15:22:09 +0000 (16:22 +0100)
Fixes #263.

binutils/binutils.nm

index bb6919a62afb33d4326544e47d05dd7059caa2e3..75158eca983ffdc9f06156c7512eb016a7771752 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = binutils
 version    = 2.21.51.0.8
-release    = 2
+release    = 3
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = Development/Tools
@@ -45,19 +45,19 @@ build
        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
-
-               cd %{DIR_SRC}/binutils-build && make tooldir=/usr %{PARALLELISMFLAGS}
+               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
+
+               make tooldir=/usr %{PARALLELISMFLAGS}
        end
 
        #def test
@@ -71,6 +71,11 @@ build
 
                cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
        end
+
+       # Keep static version of libiberty.
+       keep_libraries
+               /usr/lib/libiberty.a
+       end
 end
 
 packages