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