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 | 438013dfeadd9788c5b55ab6b9b6c5cc408d5675 (patch) | |
tree | fd2f2dc0c620820e167f763bd2e69f2d58b1f4ce /gdb/configure.in | |
parent | aa0842299a6b7e2c6eaeab99ce805501af4b9b70 (diff) | |
download | gdb-438013dfeadd9788c5b55ab6b9b6c5cc408d5675.zip gdb-438013dfeadd9788c5b55ab6b9b6c5cc408d5675.tar.gz gdb-438013dfeadd9788c5b55ab6b9b6c5cc408d5675.tar.bz2 |
* 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 382ddb6..48f7b1a 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. |