• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisionf6de3c42a31e268abe5f03ea860742829db2f677 (tree)
Time2004-10-17 01:18:54
AuthorDaniel Jacobowitz <drow@fals...>
CommiterDaniel Jacobowitz

Log Message

* configure.in: Test for -rdynamic.
* configure: Regenerated.
* Makefile (INTERNAL_LDFLAGS): New.
(gdbserver, gdbreplay): Use it.

Change Summary

Incremental Difference

--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,10 @@
1+2004-10-16 Daniel Jacobowitz <dan@debian.org>
2+
3+ * configure.in: Test for -rdynamic.
4+ * configure: Regenerated.
5+ * Makefile (INTERNAL_LDFLAGS): New.
6+ (gdbserver, gdbreplay): Use it.
7+
18 2004-09-02 Andrew Cagney <cagney@gnu.org>
29
310 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -103,6 +103,7 @@ INTERNAL_CFLAGS = $(WARN_CFLAGS) ${CFLAGS} ${GLOBAL_CFLAGS} \
103103 # LDFLAGS is specifically reserved for setting from the command line
104104 # when running make.
105105 LDFLAGS = @LDFLAGS@
106+INTERNAL_LDFLAGS = $(LDFLAGS) @RDYNAMIC@
106107
107108 # Perhaps should come from parent Makefile
108109 VERSION = gdbserver-4.12.3
@@ -171,12 +172,12 @@ clean-info:
171172
172173 gdbserver: $(OBS) ${ADD_DEPS} ${CDEPS}
173174 rm -f gdbserver
174- ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdbserver $(OBS) \
175+ ${CC-LD} $(GLOBAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver $(OBS) \
175176 $(GDBSERVER_LIBS) $(XM_CLIBS)
176177
177178 gdbreplay: gdbreplay.o
178179 rm -f gdbreplay
179- ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdbreplay gdbreplay.o \
180+ ${CC-LD} $(GLOBAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay gdbreplay.o \
180181 $(XM_CLIBS)
181182
182183 # Put the proper machine-specific files first, so M-. on a machine
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -1582,6 +1582,28 @@ rm -f conftest*
15821582 else
15831583 srv_libs="$srv_cv_thread_db"
15841584 fi
1585+ old_LDFLAGS="$LDFLAGS"
1586+ LDFLAGS="$LDFLAGS -rdynamic"
1587+ cat > conftest.$ac_ext <<EOF
1588+#line 1589 "configure"
1589+#include "confdefs.h"
1590+
1591+int main() {
1592+
1593+; return 0; }
1594+EOF
1595+if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1596+ rm -rf conftest*
1597+ RDYNAMIC=-rdynamic
1598+else
1599+ echo "configure: failed program was:" >&5
1600+ cat conftest.$ac_ext >&5
1601+ rm -rf conftest*
1602+ RDYNAMIC=
1603+fi
1604+rm -f conftest*
1605+
1606+ LDFLAGS="$old_LDFLAGS"
15851607 fi
15861608
15871609 if test "$srv_linux_thread_db" = "yes"; then
@@ -1749,6 +1771,7 @@ s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17491771 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17501772 s%@INSTALL_DATA@%$INSTALL_DATA%g
17511773 s%@CPP@%$CPP%g
1774+s%@RDYNAMIC@%$RDYNAMIC%g
17521775 s%@GDBSERVER_DEPFILES@%$GDBSERVER_DEPFILES%g
17531776 s%@GDBSERVER_LIBS@%$GDBSERVER_LIBS%g
17541777 s%@USE_THREAD_DB@%$USE_THREAD_DB%g
--- a/gdb/gdbserver/configure.in
+++ b/gdb/gdbserver/configure.in
@@ -1,5 +1,5 @@
11 dnl Autoconf configure script for GDB server.
2-dnl Copyright 2000, 2002 Free Software Foundation, Inc.
2+dnl Copyright 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
33 dnl
44 dnl This file is part of GDB.
55 dnl
@@ -114,6 +114,11 @@ if test "$srv_linux_thread_db" = "yes"; then
114114 else
115115 srv_libs="$srv_cv_thread_db"
116116 fi
117+ old_LDFLAGS="$LDFLAGS"
118+ LDFLAGS="$LDFLAGS -rdynamic"
119+ AC_TRY_LINK([], [], [RDYNAMIC=-rdynamic], [RDYNAMIC=])
120+ AC_SUBST(RDYNAMIC)
121+ LDFLAGS="$old_LDFLAGS"
117122 fi
118123
119124 if test "$srv_linux_thread_db" = "yes"; then