aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2010-06-15 18:37:18 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2010-06-15 18:37:18 +0000
commit0407b3f19d91f3dea29b994d0465d2f0fafdedb3 (patch)
treebcbb1d343d4a85de4b10f2f3b7d50dd697ef0b42 /gdb/configure.ac
parent98d64339ed334b1f72ef5265d6bc416d04a4bb55 (diff)
downloadgdb-0407b3f19d91f3dea29b994d0465d2f0fafdedb3.zip
gdb-0407b3f19d91f3dea29b994d0465d2f0fafdedb3.tar.gz
gdb-0407b3f19d91f3dea29b994d0465d2f0fafdedb3.tar.bz2
* configure.ac: Check for RDYNAMIC also for cross builds.
* configure: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac17
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 6d140cb..aeac060 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1453,14 +1453,7 @@ aix*)
;;
esac
-
-dnl For certain native configurations, we need to check whether thread
-dnl support can be built in or not.
-dnl
-dnl Note that we only want this if we are both native (host == target),
-dnl and not doing a canadian cross build (build == host).
-
-if test ${build} = ${host} -a ${host} = ${target} ; then
+if test "${gdb_native}" = yes; then
if test "$GCC" = "yes" ; then
# The dynamically loaded libthread_db needs access to symbols in the gdb
# executable. Older GNU ld supports --export-dynamic but --dynamic-list
@@ -1507,7 +1500,15 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
LDFLAGS="$old_LDFLAGS"
AC_MSG_RESULT($found)
fi
+fi
+
+dnl For certain native configurations, we need to check whether thread
+dnl support can be built in or not.
+dnl
+dnl Note that we only want this if we are both native (host == target),
+dnl and not doing a canadian cross build (build == host).
+if test ${build} = ${host} -a ${host} = ${target} ; then
case ${host_os} in
hpux*)
AC_MSG_CHECKING(for HPUX/OSF thread support)