1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = Development/Tools
12 url = http://www.gnu.org/software/binutils/
14 summary = The GNU Binutils are a collection of binary tools.
17 The GNU Binary Utilities, or binutils, is a collection of programming
18 tools for the manipulation of object code in various object file formats.
22 http://ftp.gnu.org/gnu/binutils/
23 ftp://ftp.kernel.org/pub/linux/devel/binutils
37 mkdir -pv %{DIR_SRC}/binutils-build
39 # Suppress the installation of an outdated standards.info file as a newer
40 # one is installed later on in the Autoconf instructions:
41 rm -fv etc/standards.info
42 sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in
44 sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in}
47 configure_options += \
48 --build=%{DISTRO_BUILDTARGET} \
49 --host=%{DISTRO_BUILDTARGET} \
50 --target=%{DISTRO_BUILDTARGET} \
55 --with-bugurl="http://bugzilla.ipfire.org/"
58 cd %{DIR_SRC}/binutils-build
59 ../%{thisapp}/configure \
62 make tooldir=/usr %{PARALLELISMFLAGS}
66 cd %{DIR_SRC}/binutils-build
67 make -k check </dev/null || :
69 echo "==== RESULTS ===="
70 cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum
74 cd %{DIR_SRC}/binutils-build
75 make tooldir=/usr install DESTDIR=%{BUILDROOT}
77 cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
79 # Prevent packages from linking against libbfd and libopcodes,
80 # because they change too often.
81 rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
83 # Remove Windows/Novell only man pages.
84 rm -vf %{BUILDROOT}%{mandir}/man1/{dlltool,nlmconv,windres}*
87 # Keep static version of libiberty.
99 # Don't package libbfd and libopcodes in the -devel package.
106 package %{name}-debuginfo