X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fmysqltcl.git;a=blobdiff_plain;f=debian%2Fpatches%2Ftcl.m4_gnu_non_linux_ld_settings;fp=debian%2Fpatches%2Ftcl.m4_gnu_non_linux_ld_settings;h=f398156584e355a1797bf1e0992eb53cd40d6845;hp=0000000000000000000000000000000000000000;hb=d13746cc0686ad67521e0e5ef12801ef386e2d3a;hpb=9e99911d85d92bfea77ca83273f28bcd3c3b249c diff --git a/debian/patches/tcl.m4_gnu_non_linux_ld_settings b/debian/patches/tcl.m4_gnu_non_linux_ld_settings new file mode 100644 index 0000000..f398156 --- /dev/null +++ b/debian/patches/tcl.m4_gnu_non_linux_ld_settings @@ -0,0 +1,27 @@ +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