From 1b78e64748ce04a156d11c975b00f914f161f9ea Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Mon, 1 Oct 2018 17:13:22 +0200 Subject: [PATCH] */gcc6*: add symlinks for all binutils [skip ci] I thought only having specific symlinks was enough, and it was for one kernel. However, to make sure it works with all kernels, let's just add symlinks for all the binutils. --- cross/gcc6-aarch64/APKBUILD | 5 +++-- cross/gcc6-armhf/APKBUILD | 5 +++-- cross/gcc6-x86_64/APKBUILD | 5 +++-- main/gcc6/APKBUILD | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/cross/gcc6-aarch64/APKBUILD b/cross/gcc6-aarch64/APKBUILD index efa85df68..e520bc48b 100644 --- a/cross/gcc6-aarch64/APKBUILD +++ b/cross/gcc6-aarch64/APKBUILD @@ -24,7 +24,7 @@ _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET" pkgname="gcc6-aarch64" pkgver=6.4.0 -pkgrel=3 +pkgrel=4 pkgdesc="Stage2 cross-compiler for aarch64" url="http://gcc.gnu.org" arch="armhf x86_64 x86" @@ -421,7 +421,8 @@ package() { # Link binutils to gcc6-* (so 'CROSS_COMPILE=gcc6-...' works) echo "Link binutils to gcc6-*" mkdir -p "$pkgdir/usr/bin" - for i in "ld" "ar" "nm" "objcopy" "objdump"; do + for i in "elfedit" "gprof" "addr2line" "strings" "as" "ld" "size" "ld.bfd" \ + "readelf" "nm" "ar" "strip" "dwp" "objdump" "objcopy" "c++filt" "ranlib"; do ln -sv "/usr/bin/$CTARGET-$i" \ "$pkgdir/usr/bin/gcc6-$CTARGET-$i" done diff --git a/cross/gcc6-armhf/APKBUILD b/cross/gcc6-armhf/APKBUILD index d820ef173..ec9ed1953 100644 --- a/cross/gcc6-armhf/APKBUILD +++ b/cross/gcc6-armhf/APKBUILD @@ -24,7 +24,7 @@ _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET" pkgname="gcc6-armhf" pkgver=6.4.0 -pkgrel=3 +pkgrel=4 pkgdesc="Stage2 cross-compiler for armhf" url="http://gcc.gnu.org" arch="aarch64 x86_64 x86" @@ -413,7 +413,8 @@ package() { # failing and causes many headaches). See also: '-B' in 'man gcc'. echo "Link binutils binaries to /usr/gcc6" mkdir -p "$pkgdir$prefix/$CTARGET/bin" - for i in "as" "ld"; do + for i in "elfedit" "gprof" "addr2line" "strings" "as" "ld" "size" "ld.bfd" \ + "readelf" "nm" "ar" "strip" "dwp" "objdump" "objcopy" "c++filt" "ranlib"; do ln -sv "/usr/$CTARGET/bin/$i" \ "$pkgdir$prefix/$CTARGET/bin/$i" done diff --git a/cross/gcc6-x86_64/APKBUILD b/cross/gcc6-x86_64/APKBUILD index f7b7a94b6..e9c40aa3a 100644 --- a/cross/gcc6-x86_64/APKBUILD +++ b/cross/gcc6-x86_64/APKBUILD @@ -24,7 +24,7 @@ _cross_configure="--disable-bootstrap --with-sysroot=/usr/$CTARGET" pkgname="gcc6-x86_64" pkgver=6.4.0 -pkgrel=3 +pkgrel=4 pkgdesc="Stage2 cross-compiler for x86_64" url="http://gcc.gnu.org" arch="armhf aarch64 x86" @@ -421,7 +421,8 @@ package() { # Link binutils to gcc6-* (so 'CROSS_COMPILE=gcc6-...' works) echo "Link binutils to gcc6-*" mkdir -p "$pkgdir/usr/bin" - for i in "ld" "ar" "nm" "objcopy" "objdump"; do + for i in "elfedit" "gprof" "addr2line" "strings" "as" "ld" "size" "ld.bfd" \ + "readelf" "nm" "ar" "strip" "dwp" "objdump" "objcopy" "c++filt" "ranlib"; do ln -sv "/usr/bin/$CTARGET-$i" \ "$pkgdir/usr/bin/gcc6-$CTARGET-$i" done diff --git a/main/gcc6/APKBUILD b/main/gcc6/APKBUILD index 4856ea14d..2eb6efa8a 100644 --- a/main/gcc6/APKBUILD +++ b/main/gcc6/APKBUILD @@ -1,6 +1,6 @@ pkgname=gcc6 pkgver=6.4.0 -pkgrel=3 +pkgrel=4 pkgdesc="Old GCC for old vendor kernels (C compiler only)" url="http://gcc.gnu.org" arch="all" @@ -401,7 +401,8 @@ package() { # Link binutils to gcc6-* (so 'CROSS_COMPILE=gcc6-...' works) echo "Link binutils to gcc6-*" mkdir -p "$pkgdir/usr/bin" - for i in "ld" "ar" "nm" "objcopy" "objdump"; do + for i in "elfedit" "gprof" "addr2line" "strings" "as" "ld" "size" "ld.bfd" \ + "readelf" "nm" "ar" "strip" "dwp" "objdump" "objcopy" "c++filt" "ranlib"; do ln -sv "/usr/bin/$CTARGET-$i" \ "$pkgdir/usr/bin/gcc6-$CTARGET-$i" done