summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Potortì <pot@gnu.org>2003-03-16 22:26:14 +0000
committerFrancesco Potortì <pot@gnu.org>2003-03-16 22:26:14 +0000
commitcf4703cb18fcf28cad8d2826a81774cafa05108e (patch)
treefe86a00584e7686a91113e19e1fe64ae40e5da4e
parent682896db0bf706a3431256204f5fc3b98ad8bf7f (diff)
downloademacs-cf4703cb18fcf28cad8d2826a81774cafa05108e.tar.gz
Check for need for bigtoc support on IBM AIX for
solving a linker table overflow problem.
-rw-r--r--configure.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index c15c5dc0cf9..522e93f029d 100644
--- a/configure.in
+++ b/configure.in
@@ -1598,6 +1598,22 @@ else
fi
AC_MSG_RESULT($HAVE_XFREE386)
+dnl Check for need for bigtoc support on IBM AIX
+
+case ${host_os} in
+aix*)
+ AC_CACHE_CHECK([for -bbigtoc option], [gdb_cv_bigtoc], [
+ case $GCC in
+ yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
+ *) gdb_cv_bigtoc=-bbigtoc ;;
+ esac
+
+ LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
+ AC_TRY_LINK([], [int i;], [], [gdb_cv_bigtoc=])
+ ])
+ ;;
+esac
+
# Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
# for the tests that follow. We set it back to REAL_CFLAGS later on.