Fix incomplete linker settings in tcl.m4 on non Linux but GNU systems which are not detected correctly. This is a problem on Debian GNU/kfreebsd and GNU/Hurd. Patch provided by Pino Toscano . http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624378 To take effect we've to run autoreconf after the patch is applied. Forwarded upstream on 28.04.2011 via email. --- a/tclconfig/tcl.m4 +++ b/tclconfig/tcl.m4 @@ -1475,11 +1475,11 @@ dnl AC_CHECK_TOOL(AR, ar) SHLIB_SUFFIX=".so" SHLIB_LD="${CC} -shared" - DL_OBJS="" + DL_OBJS="tclLoadDl.o" DL_LIBS="-ldl" LDFLAGS="$LDFLAGS -Wl,--export-dynamic" - CC_SEARCH_FLAGS="" - LD_SEARCH_FLAGS="" + CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' + LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} if test "`uname -m`" = "alpha" ; then CFLAGS="$CFLAGS -mieee" fi