aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-06-11 19:21:42 +0000
committerStu Grossman <grossman@cygnus>1996-06-11 19:21:42 +0000
commit4915acadd4d308ebfc500c64394a7fb87104ffde (patch)
tree5aac838ac4105879a8bd5178808dce98b62c8b30 /gdb/configure.in
parentf023ce5c80dd65e074f82e83c8ebaaecf162a27c (diff)
downloadgdb-4915acadd4d308ebfc500c64394a7fb87104ffde.zip
gdb-4915acadd4d308ebfc500c64394a7fb87104ffde.tar.gz
gdb-4915acadd4d308ebfc500c64394a7fb87104ffde.tar.bz2
* Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
* configure configure.in: Only make sol-thread.o for native. Also, switch to dlopened libthread_db.so.1. * sol-thread.c: Switch to using dlopen to get the thread_db library.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in29
1 files changed, 16 insertions, 13 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 001beb3..7b549ce 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -96,20 +96,23 @@ AC_MSG_RESULT($gdb_cv_printf_has_long_double)
AC_FUNC_MMAP
-dnl See if thread_db is around for Solaris thread debugging. Note that we must
-dnl explicitly test for version 1 of the library because version 0 (present on
-dnl Solaris 2.4 or earlier) doesn't have the same API.
-
-AC_MSG_CHECKING(for Solaris thread debugging library)
-if test -f /usr/lib/libthread_db.so.1 ; then
- AC_MSG_RESULT(yes)
- LIBS="$LIBS /usr/lib/libthread_db.so.1"
- THREAD_DB_OBS=sol-thread.o
- AC_DEFINE(HAVE_THREAD_DB_LIB)
-else
- AC_MSG_RESULT(no)
+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.
+
+if test ${host} = ${target} ; then
+ AC_MSG_CHECKING(for Solaris thread debugging library)
+ if test -f /usr/lib/libthread_db.so.1 ; then
+ AC_MSG_RESULT(yes)
+ THREAD_DB_OBS=sol-thread.o
+ AC_DEFINE(HAVE_THREAD_DB_LIB)
+ CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
+ else
+ AC_MSG_RESULT(no)
+ fi
+ AC_SUBST(THREAD_DB_OBS)
+ AC_SUBST(CONFIG_LDFLAGS)
fi
-AC_SUBST(THREAD_DB_OBS)
dnl Handle optional features that can be enabled.
ENABLE_CFLAGS=