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.
21 source_dl = http://ftp.gnu.org/gnu/binutils/
34 mkdir -pv %{DIR_SRC}/binutils-build
36 # Suppress the installation of an outdated standards.info file as a newer
37 # one is installed later on in the Autoconf instructions:
38 rm -fv etc/standards.info
39 sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in
41 sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in}
44 configure_options += \
45 --build=%{DISTRO_BUILDTARGET} \
46 --host=%{DISTRO_BUILDTARGET} \
47 --target=%{DISTRO_BUILDTARGET} \
52 --with-bugurl="http://bugzilla.ipfire.org/"
55 cd %{DIR_SRC}/binutils-build
56 ../%{thisapp}/configure \
59 make tooldir=/usr %{PARALLELISMFLAGS}
63 # # Apply a sed substitution to prevent a testsuite error:
64 # sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c
65 # cd %{DIR_SRC}/binutils-build && make check
69 cd %{DIR_SRC}/binutils-build && make tooldir=/usr install DESTDIR=%{BUILDROOT}
71 cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
73 # Prevent packages from linking against libbfd and libopcodes,
74 # because they change too often.
75 rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
78 # Keep static version of libiberty.
90 # Don't package libbfd and libopcodes in the -devel package.
97 package %{name}-debuginfo