###############################################################################
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
perl
texinfo
zlib-devel
+ zstd-devel
end
+ LDFLAGS += -Wl,--enable-new-dtags
+
prepare_cmds
mkdir -pv %{DIR_SRC}/binutils-build
end
--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
# 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