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}
46 BINUTILS_TARGET_PLATFORM=$(echo "%{DISTRO_MACHINE}" | sed -e "s/-gnu//")
48 cd %{DIR_SRC}/binutils-build && \
49 ../%{thisapp}/configure \
50 --host=${BINUTILS_TARGET_PLATFORM} \
51 --build=${BINUTILS_TARGET_PLATFORM} \
52 --target=${BINUTILS_TARGET_PLATFORM} \
54 --mandir=/usr/share/man \
60 cd %{DIR_SRC}/binutils-build && make tooldir=/usr %{PARALLELISMFLAGS}
64 # # Apply a sed substitution to prevent a testsuite error:
65 # sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c
66 # cd %{DIR_SRC}/binutils-build && make check
70 cd %{DIR_SRC}/binutils-build && make tooldir=/usr install DESTDIR=%{BUILDROOT}
72 cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include