Mail archive
alpine-aports

[alpine-aports] [PATCH 3/7] main/gcc: disable .gnu_hash on MIPS archs

From: Nils Andreas Svee <me_at_lochnair.net>
Date: Sun, 10 Dec 2017 01:18:10 +0100

---
 main/gcc/APKBUILD | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index f452f7c35c..83243c2c28 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
_at_@ -243,6 +243,11 @@ build() {
 	s390x-*-*-*)		_arch_configure="--with-arch=z196 --with-tune=zEC12 --with-zarch --with-long-double-128 --enable-decimal-float";;
 	esac
 
+	case "$CTARGET_ARCH" in
+	mips*)	_hash_style_configure="--with-linker-hash-style=sysv" ;;
+	*)	_hash_style_configure="--with-linker-hash-style=gnu" ;;
+	esac
+
 	case "$CTARGET_LIBC" in
 	musl)
 		# musl does not support mudflap, or libsanitizer
_at_@ -279,6 +284,7 @@ build() {
 	echo "  libc_configure=$_libc_configure"
 	echo "  cross_configure=$_cross_configure"
 	echo "  bootstrap_configure=$_bootstrap_configure"
+	echo "	hash_style_configure=$_hash_style_configure"
 	echo ""
 
 	mkdir -p "$_builddir"
_at_@ -306,7 +312,7 @@ build() {
 		$_cross_configure \
 		$_bootstrap_configure \
 		--with-system-zlib \
-		--with-linker-hash-style=gnu
+		$_hash_style_configure
 	make
 }
 
-- 
2.15.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sun Dec 10 2017 - 01:18:10 GMT