commit:     bca0183c33356df09669f19f2b40c20f7de7dc11
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 20 21:07:59 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Dec 20 21:07:59 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=bca0183c

build: disable gc-sections on ia64 systems

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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]) ;;

Reply via email to