CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
binutils: updated to 2.35.2
[ports/core-arm64.git] / binutils / Pkgfile
CommitLineData
21416e97
VM
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# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5# Depends on: zlib flex
6
7name=binutils
e8e30358 8version=2.35.2
21416e97
VM
9release=1
10source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.bz2)
11
12build() {
13 sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/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 \
bfaf37b6 24 --enable-install-libiberty \
571cd873
VM
25 --disable-werror \
26 --with-system-zlib
21416e97
VM
27
28 make tooldir=/usr
29 make tooldir=/usr DESTDIR=$PKG install
30
21416e97 31 rm -r $PKG/usr/share/info
571cd873 32 sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.la
21416e97 33}