summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch')
-rw-r--r--meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch b/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
new file mode 100644
index 0000000000..96276eab0e
--- /dev/null
+++ b/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
@@ -0,0 +1,46 @@
1Upstream-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+
14 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
15 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+
28 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
29 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)/"