From f4d9f5b809e17346a5837eb6a9bf0c8e3062c237 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Francesco=20Potort=C3=AC?= Date: Sun, 16 Mar 2003 22:30:36 +0000 Subject: [PATCH] Check for need for bigtoc support on IBM AIX for solving a linker table overflow problem. --- configure.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/configure.in b/configure.in index b4c473ac102..e3c756b4224 100644 --- a/configure.in +++ b/configure.in @@ -1685,6 +1685,22 @@ else HAVE_XFREE386=no 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 and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets # used for the tests that follow. We set them back to REAL_CFLAGS and -- 2.39.2