This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, gdb-patches at sourceware dot org
- Date: Sun, 13 Jun 2010 22:17:02 +0200
- Subject: Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list
- References: <20100513131840.GA31032@host0.dyn.jankratochvil.net> <AANLkTin4ZlIvdh7BXyfsuBj9oBmCJpHEYwhxukRqaVYu@mail.gmail.com> <20100516180828.GA6448@host0.dyn.jankratochvil.net> <m2sk4qhfh5.fsf@igel.home>
Tested on ppc-linux.
Andreas.
2010-06-13 Andreas Schwab <schwab@linux-m68k.org>
* configure.ac: Check for RDYNAMIC also for cross builds.
* configure: Regenerate.
--- configure.ac.~1.122.~ 2010-06-12 23:13:19.000000000 +0200
+++ configure.ac 2010-06-13 22:09:54.000000000 +0200
@@ -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} =
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)
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."