blob: 296ff6d26f385458c9aeaffcc2647465f831229b (
plain)
1 # Description: The GNU Binutils are a collection of binary tools
2 # URL: http://sources.redhat.com/binutils/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: zlib flex
5
6 name=binutils
7 version=2.35.2
8 release=1
9 source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
10
11 build() {
12 sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
13 sed -i '/^SUBDIRS/s/doc//' $name-$version/binutils/Makefile.in
14
15 mkdir build
16 cd build
17
18 ../$name-$version/configure --prefix=/usr \
19 --enable-shared \
20 --disable-nls \
21 --enable-ld=default \
22 --enable-gold=yes \
23 --enable-plugins \
24 --enable-install-libiberty \
25 --disable-werror \
26 --with-system-zlib
27
28 make tooldir=/usr
29 make tooldir=/usr DESTDIR=$PKG install
30
31 rm -r $PKG/usr/share/info
32 sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.la
33 }
|