1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
7 pkgdesc="The Google Linker from GNU binutils, with plugin support"
8 url="http://www.gnu.org/software/binutils/"
10 depends=(gcc-libs glibc zlib)
13 _cvsroot=":pserver:anoncvs@sourceware.org:/cvs/src"
18 msg "Connecting to sourceware.org CVS server...."
19 cvs -z 9 -d $_cvsroot co -D $pkgver -f -l $_cvsmod
20 cvs -z 9 -d $_cvsroot co -D $pkgver -f \
21 $_cvsmod/{bfd,config,cpu,elfcpp,etc,gold,include,intl,libiberty,opcodes,texinfo}
22 msg "CVS checkout done or server timeout"
28 export ERROR_ON_WARNING=no
30 msg "Starting configure..."
31 ../$_cvsmod/configure \
33 --mandir=/usr/share/man \
34 --infodir=/usr/share/info \
39 --enable-targets=all || return 1
41 msg "Starting make..."
42 make all-gold || return 1
46 cd "$srcdir/$_cvsmod-build"
48 make prefix="$pkgdir/usr" tooldir="$pkgdir/usr" install-gold || return 1
50 # ld plugin API (e.g. for LLVM link-time optimization)
51 install -m644 -D "$srcdir/$_cvsmod/include/plugin-api.h" "$pkgdir/usr/include/plugin-api.h"
54 mv "$pkgdir"/usr/bin/{ld,gold}