1 |
commit: bca0183c33356df09669f19f2b40c20f7de7dc11 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 20 21:07:59 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 20 21:07:59 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=bca0183c |
7 |
|
8 |
build: disable gc-sections on ia64 systems |
9 |
|
10 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
11 |
|
12 |
configure.ac | 5 ++++- |
13 |
1 file changed, 4 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/configure.ac b/configure.ac |
16 |
index b8430dd..18be54b 100644 |
17 |
--- a/configure.ac |
18 |
+++ b/configure.ac |
19 |
@@ -434,7 +434,10 @@ SB_CHECK_CFLAG([-fno-builtin-malloc]) |
20 |
SB_CHECK_CFLAG([-fno-builtin-realloc]) |
21 |
AC_DEFUN([SB_CHECK_LDFLAG],[AX_CHECK_LINK_FLAG([-Wl,$1],[LDFLAGS="$LDFLAGS -Wl,$1"])]) |
22 |
SB_CHECK_LDFLAG([--as-needed]) |
23 |
-SB_CHECK_LDFLAG([--gc-sections]) |
24 |
+dnl Itanium systems do not like this flag, so disable it to avoid warnings. |
25 |
+if test "$host_cpu" != "ia64" ; then |
26 |
+ SB_CHECK_LDFLAG([--gc-sections]) |
27 |
+fi |
28 |
case $host_os in |
29 |
dnl bsd is dumb (environ) |
30 |
*linux*) SB_CHECK_LDFLAG([--no-undefined]) ;; |