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
7 To take effect we've to run autoreconf after the patch
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)
16 SHLIB_LD="${CC} -shared"
18 + DL_OBJS="tclLoadDl.o"
20 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
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"