summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2015-06-26 17:17:43 +0200
committerJuergen Daubert <jue@jue.li>2015-06-26 17:17:43 +0200
commit64af57b694706633d8aa583cc0e77c4d024a47a4 (patch)
tree07e1cccd9093bc2bb7143928fe6eeccc67732876 /binutils
parent992a365c3e4f30ca6659fcd3ad734e7cafd0b4d6 (diff)
downloadcore-64af57b694706633d8aa583cc0e77c4d024a47a4.tar.gz
core-64af57b694706633d8aa583cc0e77c4d024a47a4.tar.xz
binutils: build gold linker additionally, ld.bfd is still the default
Diffstat (limited to 'binutils')
-rw-r--r--binutils/.footprint2
-rw-r--r--binutils/Pkgfile14
2 files changed, 13 insertions, 3 deletions
diff --git a/binutils/.footprint b/binutils/.footprint
index e22809f4..917be30e 100644
--- a/binutils/.footprint
+++ b/binutils/.footprint
@@ -4,10 +4,12 @@ drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/ar
-rwxr-xr-x root/root usr/bin/as
-rwxr-xr-x root/root usr/bin/c++filt
+-rwxr-xr-x root/root usr/bin/dwp
-rwxr-xr-x root/root usr/bin/elfedit
-rwxr-xr-x root/root usr/bin/gprof
-rwxr-xr-x root/root usr/bin/ld
-rwxr-xr-x root/root usr/bin/ld.bfd
+-rwxr-xr-x root/root usr/bin/ld.gold
-rwxr-xr-x root/root usr/bin/nm
-rwxr-xr-x root/root usr/bin/objcopy
-rwxr-xr-x root/root usr/bin/objdump
diff --git a/binutils/Pkgfile b/binutils/Pkgfile
index e8546132..1096c102 100644
--- a/binutils/Pkgfile
+++ b/binutils/Pkgfile
@@ -1,7 +1,7 @@
# Description: The GNU Binutils are a collection of binary tools
# URL: http://sources.redhat.com/binutils/
# Maintainer: CRUX System Team, core-ports at crux dot nu
-# Depends on: zlib
+# Depends on: zlib flex
name=binutils
version=2.25
@@ -10,16 +10,24 @@ source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
build() {
sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in
+
mkdir build
cd build
+
../$name-$version/configure --prefix=/usr \
--mandir=/usr/man \
--enable-shared \
- --disable-nls --disable-werror
+ --disable-nls \
+ --enable-ld=default \
+ --enable-gold=yes \
+ --enable-plugins \
+ --disable-werror
+
make tooldir=/usr
- make check
make tooldir=/usr DESTDIR=$PKG install
+
install -m 0644 ../$name-$version/include/libiberty.h $PKG/usr/include
+
rm -r $PKG/usr/share
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/lib{bfd,opcodes}.la
}

Generated by cgit