blob: d1fc9b92e54cbcc940946dc6765231240551a381 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Pending
2
3Index: unix/configure
4===================================================================
5--- unix.orig/configure 2013-09-19 13:17:13.000000000 -0700
6+++ unix/configure 2013-11-11 00:20:51.519490342 -0800
7@@ -7599,6 +7599,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/tcl.m4
18===================================================================
19--- unix.orig/tcl.m4 2013-09-19 13:17:13.000000000 -0700
20+++ unix/tcl.m4 2013-11-11 00:17:24.263485123 -0800
21@@ -1415,6 +1415,9 @@
22 # get rid of the warnings.
23 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
24
25+ # following line added by CW for Debian GNU/Linux
26+ TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0"
27+
Brad Bishop316dfdd2018-06-25 12:45:53 -040028 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029 DL_OBJS="tclLoadDl.o"
30 DL_LIBS="-ldl"
31Index: unix/Makefile.in
32===================================================================
33--- unix.orig/Makefile.in 2013-09-19 13:17:13.000000000 -0700
34+++ unix/Makefile.in 2013-11-11 00:20:32.423489861 -0800
35@@ -796,7 +796,10 @@
36 done;
37 @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
38 @@INSTALL_LIB@
39- @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
40+ mv "$(DLL_INSTALL_DIR)"/$(LIB_FILE) "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0
41+ ln -sf $(LIB_FILE).0 "$(DLL_INSTALL_DIR)"/$(LIB_FILE)
42+ ln -sf "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0 ./
43+ @chmod 555 "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0
44 @echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
45 @$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
46 @echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/"