]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
binutils: Update to 2.40
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Jan 2023 13:34:15 +0000 (13:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Jan 2023 13:34:15 +0000 (13:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
binutils/binutils.nm

index 93b67333470e9190ea28357112d9d2b3c91b370d..8ac94fde4bbdb1b3a2d53aef4adba8bd7f3f4046 100644 (file)
@@ -4,14 +4,14 @@
 ###############################################################################
 
 name       = binutils
-version    = 2.39
+version    = 2.40
 release    = 1
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = Development/Tools
-url        = http://www.gnu.org/software/binutils/
+url        = https://www.gnu.org/software/binutils/
 license    = GPLv2+
-summary    = The GNU Binutils are a collection of binary tools.
+summary    = The GNU Binutils are a collection of binary tools
 
 description
        The GNU Binary Utilities, or binutils, is a collection of programming
@@ -31,8 +31,11 @@ build
                perl
                texinfo
                zlib-devel
+               zstd-devel
        end
 
+       LDFLAGS += -Wl,--enable-new-dtags
+
        prepare_cmds
                mkdir -pv %{DIR_SRC}/binutils-build
        end
@@ -43,11 +46,18 @@ build
                --target=%{DISTRO_BUILDTARGET} \
                --disable-werror \
                --disable-static \
+               --enable-shared \
                --enable-64-bit-bfd \
                --enable-plugins \
                --with-bugurl="https://bugzilla.ipfire.org/" \
                --enable-relro=yes \
-               --enable-lto
+               --enable-ld \
+               --disable-gold \
+               --enable-lto \
+               --with-system-zlib \
+               --enable-new-dtags \
+               --disable-rpath \
+               --enable-separate-code
 
        build
                cd %{DIR_SRC}/binutils-build
@@ -78,33 +88,26 @@ build
                # Remove Windows/Novell only man pages.
                rm -vf %{BUILDROOT}%{mandir}/man1/{dlltool,nlmconv,windres}*
        end
-
-       # Keep static version of libiberty.
-       keep_libraries
-               %{libdir}/libiberty.a
-       end
 end
 
 packages
        package %{name}
-               provides
-                       bundled(libiberty)
-               end
+
+       package %{name}-libs
+               template LIBS
+
+               files += %{libdir}/*-%{version}.so
        end
 
        package %{name}-devel
                template DEVEL
 
                requires
-                       binutils = %{thisver}
+                       binutils-libs = %{thisver}
                        zlib-devel
                end
 
-               # Don't package libbfd and libopcodes in the -devel package.
-               files
-                       /usr/include
-                       %{libdir}/*.a
-               end
+               files += !%{libdir}/*-%{version}.so
        end
 
        package %{name}-debuginfo