Overview
| Artifact ID: | d6b8696548b38929ec8a500bff63a8ba3a8fbb10 |
|---|---|
| Ticket: | 573395ffffffffffffffffffffffffffffffffff
Switch -rdynamic to -Wl,--export-dynamic |
| User & Date: | nobody on 2002-06-24 23:50:47 |
Changes
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- comment changed to:
As the summary indicates, the patch replaces the "-rdynamic" variable in LDFLAGS with "-Wl,--export-dynamic". The "-rdynamic" flag isn't documented in GCC or the GNU Binutils, and after hunting around for what it does, I eventually stumbled across it buried deep in the specs file for GCC. It passes the "--export-dynamic" flag to the linker. So, it seems worthwhile to simply do this directly. There won't be any mystery as to what the flag does, and the "--export-dynamic" flag is documented in the linker info/man pages, so someone trying to figure out why tcl/tk are built like they are should have a simpler time deciphering the build log or peeking around the Makefile. I've built both tcl8.4b1 and tk8.4b1 with this change to the tcl.m4 files. The patch is trivial, so I'll cut and paste it below. My thanks to everyone working on Tcl/Tk!. Art Haas [email protected] Index: tcl.m4 =================================================================== RCS file: /cvsroot/tcl/tcl/unix/tcl.m4,v retrieving revision 1.67 diff -u -r1.67 tcl.m4 --- tcl.m4 6 Jun 2002 17:37:57 -0000 1.67 +++ tcl.m4 24 Jun 2002 23:39:49 -0000 @@ -905,7 +929,7 @@ SHLIB_LD="${CC} -shared" DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" - LDFLAGS="-rdynamic" + LDFLAGS="-Wl,--export-dynamic" LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' else @@ -940,7 +964,7 @@ SHLIB_LD="${CC} -shared" DL_OBJS="" DL_LIBS="-ldl" - LDFLAGS="-rdynamic" + LDFLAGS="-Wl,--export-dynamic" LD_SEARCH_FLAGS="" else AC_CHECK_HEADER(dld.h, [ AC_CHECK_HEADER(dld.h, [
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "53. Configure and Build Tools"
- title changed to: "Switch -rdynamic to -Wl,--export-dynamic"
- type changed to: "Patch"