aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-20 16:07:59 -0500
committerMike Frysinger <vapier@gentoo.org>2015-12-20 16:07:59 -0500
commitbca0183c33356df09669f19f2b40c20f7de7dc11 (patch)
treeca9c9e087e0c8c96784726c24eb6e4a10c0085fb
parentlibsandbox: new powerpc ptrace port (diff)
downloadsandbox-bca0183c33356df09669f19f2b40c20f7de7dc11.tar.gz
sandbox-bca0183c33356df09669f19f2b40c20f7de7dc11.tar.bz2
sandbox-bca0183c33356df09669f19f2b40c20f7de7dc11.zip
build: disable gc-sections on ia64 systems
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b8430dd..18be54b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -434,7 +434,10 @@ SB_CHECK_CFLAG([-fno-builtin-malloc])
SB_CHECK_CFLAG([-fno-builtin-realloc])
AC_DEFUN([SB_CHECK_LDFLAG],[AX_CHECK_LINK_FLAG([-Wl,$1],[LDFLAGS="$LDFLAGS -Wl,$1"])])
SB_CHECK_LDFLAG([--as-needed])
-SB_CHECK_LDFLAG([--gc-sections])
+dnl Itanium systems do not like this flag, so disable it to avoid warnings.
+if test "$host_cpu" != "ia64" ; then
+ SB_CHECK_LDFLAG([--gc-sections])
+fi
case $host_os in
dnl bsd is dumb (environ)
*linux*) SB_CHECK_LDFLAG([--no-undefined]) ;;