]> git.sven.stormbind.net Git - sven/mysqltcl.git/blob - debian/patches/tcl.m4_gnu_non_linux_ld_settings
Merge tag 'upstream/3.052'
[sven/mysqltcl.git] / debian / patches / tcl.m4_gnu_non_linux_ld_settings
1 Fix incomplete linker settings in tcl.m4 on non Linux
2 but GNU systems which are not detected correctly.
3 This is a problem on Debian GNU/kfreebsd and GNU/Hurd.
4 Patch provided by Pino Toscano <toscano.pino@tiscali.it>.
5 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624378
6
7 To take effect we've to run autoreconf after the patch
8 is applied.
9
10 Forwarded upstream on 28.04.2011 via email.
11 --- a/tclconfig/tcl.m4
12 +++ b/tclconfig/tcl.m4
13 @@ -1475,11 +1475,11 @@ dnl AC_CHECK_TOOL(AR, ar)
14             SHLIB_SUFFIX=".so"
15  
16             SHLIB_LD="${CC} -shared"
17 -           DL_OBJS=""
18 +           DL_OBJS="tclLoadDl.o"
19             DL_LIBS="-ldl"
20             LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
21 -           CC_SEARCH_FLAGS=""
22 -           LD_SEARCH_FLAGS=""
23 +           CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
24 +           LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
25             if test "`uname -m`" = "alpha" ; then
26                 CFLAGS="$CFLAGS -mieee"
27             fi