diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2002-03-06 21:16:00 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2002-03-06 21:16:00 +0000 |
commit | 03c8d1d30a794cacfe12b103dcb1dc07cf50a6d5 (patch) | |
tree | 455f04454e135c89f1e23cd871242e6eba945c92 /gdb/configure.in | |
parent | fe0d53f76a4e9efafda181536d4e6677ae8e2c33 (diff) | |
download | gdb-03c8d1d30a794cacfe12b103dcb1dc07cf50a6d5.tar.gz |
* configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
* configure: Rebuilt.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 382ddb67320..48f7b1a7804 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -511,6 +511,23 @@ AC_MSG_RESULT($gdb_cv_scanf_has_long_double) AC_FUNC_MMAP +case ${host_os} in +aix*) + AC_CACHE_CHECK([for -bbigtoc option], [gdb_cv_bigtoc], [ + SAVE_LDFLAGS=$LDFLAGS + + 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=]) + ]) + CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" + ;; +esac + dnl See if thread_db library is around for Solaris thread debugging. Note that dnl we must explicitly test for version 1 of the library because version 0 dnl (present on Solaris 2.4 or earlier) doesn't have the same API. |