summaryrefslogtreecommitdiff
path: root/tcl-8.6.15-conf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tcl-8.6.15-conf.patch')
-rw-r--r--tcl-8.6.15-conf.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/tcl-8.6.15-conf.patch b/tcl-8.6.15-conf.patch
new file mode 100644
index 0000000..451eded
--- /dev/null
+++ b/tcl-8.6.15-conf.patch
@@ -0,0 +1,22 @@
+diff --git a/unix/tcl.m4 b/unix/tcl.m4
+index f3d08ec..ed12cda 100644
+--- a/unix/tcl.m4
++++ b/unix/tcl.m4
+@@ -1378,7 +1378,7 @@
+ # get rid of the warnings.
+ #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
+
+- SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
++ SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared -fPIC -Wl,-soname,${@}'
+ DL_OBJS="tclLoadDl.o"
+ DL_LIBS="-ldl"
+ LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+@@ -1394,7 +1394,7 @@
+ esac
+
+ AS_IF([test $doRpath = yes], [
+- CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'])
++ CC_SEARCH_FLAGS=''])
+ LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+ AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"])
+ AS_IF([test $do64bit = yes], [