blob: c4283c4f342a52f7e212c84060ca96a67b3b89c1 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Pending
2
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003Index: unix/tcl.m4
4===================================================================
Andrew Geissler5f350902021-07-23 13:09:54 -04005--- a/unix.orig/tcl.m4 2013-09-19 13:17:13.000000000 -0700
6+++ b/unix/tcl.m4 2013-11-11 00:17:24.263485123 -0800
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007@@ -1415,6 +1415,9 @@
8 # get rid of the warnings.
9 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
10
11+ # following line added by CW for Debian GNU/Linux
12+ TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0"
13+
Brad Bishop316dfdd2018-06-25 12:45:53 -040014 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015 DL_OBJS="tclLoadDl.o"
16 DL_LIBS="-ldl"
17Index: unix/Makefile.in
18===================================================================
Andrew Geissler5f350902021-07-23 13:09:54 -040019--- a/unix.orig/Makefile.in 2013-09-19 13:17:13.000000000 -0700
20+++ b/unix/Makefile.in 2013-11-11 00:20:32.423489861 -0800
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021@@ -796,7 +796,10 @@
22 done;
23 @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
24 @@INSTALL_LIB@
25- @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
26+ mv "$(DLL_INSTALL_DIR)"/$(LIB_FILE) "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0
27+ ln -sf $(LIB_FILE).0 "$(DLL_INSTALL_DIR)"/$(LIB_FILE)
28+ ln -sf "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0 ./
29+ @chmod 555 "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0
30 @echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
31 @$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
32 @echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/"