]> git.sven.stormbind.net Git - sven/mysqltcl.git/blobdiff - debian/patches/tcl.m4_gnu_non_linux_ld_settings
* Add debian/patches/tcl.m4_gnu_non_linux_ld_settings, patch provided
[sven/mysqltcl.git] / debian / patches / tcl.m4_gnu_non_linux_ld_settings
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 (file)
index 0000000..f398156
--- /dev/null
@@ -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 <toscano.pino@tiscali.it>.
+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