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.patch64
1 files changed, 29 insertions, 35 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch b/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
index d3691f64fc..96276eab0e 100644
--- a/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
+++ b/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
@@ -2,29 +2,23 @@ Upstream-Status: Pending
2 2
3Index: unix/configure 3Index: unix/configure
4=================================================================== 4===================================================================
5--- unix.orig/configure 2013-09-19 23:17:13.000000000 +0300 5--- unix.orig/configure 2013-09-19 13:17:13.000000000 -0700
6+++ unix/configure 2013-10-16 15:58:37.450136217 +0300 6+++ unix/configure 2013-11-11 00:20:51.519490342 -0800
7@@ -6899,6 +6899,7 @@ 7@@ -7599,6 +7599,9 @@
8 LIBS="$LIBS -lc" 8 # get rid of the warnings.
9 SHLIB_CFLAGS="" 9 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
10 SHLIB_SUFFIX=".so"
11+ SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.so.0'
12 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}'
13 DL_OBJS="tclLoadDl.o" 15 DL_OBJS="tclLoadDl.o"
14 LD_LIBRARY_PATH_VAR="LIBPATH" 16 DL_LIBS="-ldl"
15Index: unix/tcl.m4 17Index: unix/tcl.m4
16=================================================================== 18===================================================================
17--- unix.orig/tcl.m4 2013-09-19 23:17:13.000000000 +0300 19--- unix.orig/tcl.m4 2013-09-19 13:17:13.000000000 -0700
18+++ unix/tcl.m4 2013-10-16 16:18:50.719586228 +0300 20+++ unix/tcl.m4 2013-11-11 00:17:24.263485123 -0800
19@@ -1408,6 +1408,7 @@ 21@@ -1415,6 +1415,9 @@
20 Linux*|GNU*|NetBSD-Debian)
21 SHLIB_CFLAGS="-fPIC"
22 SHLIB_SUFFIX=".so"
23+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.0'
24
25 CFLAGS_OPTIMIZE="-O2"
26 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
27@@ -1415,12 +1416,15 @@
28 # get rid of the warnings. 22 # get rid of the warnings.
29 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 23 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
30 24
@@ -34,19 +28,19 @@ Index: unix/tcl.m4
34 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 28 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
35 DL_OBJS="tclLoadDl.o" 29 DL_OBJS="tclLoadDl.o"
36 DL_LIBS="-ldl" 30 DL_LIBS="-ldl"
37 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 31Index: unix/Makefile.in
38 AS_IF([test $doRpath = yes], [ 32===================================================================
39- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}']) 33--- unix.orig/Makefile.in 2013-09-19 13:17:13.000000000 -0700
40+ CC_SEARCH_FLAGS='']) 34+++ unix/Makefile.in 2013-11-11 00:20:32.423489861 -0800
41 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 35@@ -796,7 +796,10 @@
42 AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"]) 36 done;
43 AS_IF([test $do64bit = yes], [ 37 @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
44@@ -2050,7 +2054,7 @@ 38 @@INSTALL_LIB@
45 39- @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
46 AS_IF([test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != ""], [ 40+ mv "$(DLL_INSTALL_DIR)"/$(LIB_FILE) "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0
47 LIB_SUFFIX=${SHARED_LIB_SUFFIX} 41+ ln -sf $(LIB_FILE).0 "$(DLL_INSTALL_DIR)"/$(LIB_FILE)
48- MAKE_LIB='${SHLIB_LD} -o [$]@ ${OBJS} ${TCL_SHLIB_LD_EXTRAS} ${SHLIB_LD_LIBS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' 42+ ln -sf "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0 ./
49+ MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' 43+ @chmod 555 "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0
50 AS_IF([test "${SHLIB_SUFFIX}" = ".dll"], [ 44 @echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
51 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(BIN_INSTALL_DIR)/$(LIB_FILE)"' 45 @$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
52 DLL_INSTALL_DIR="\$(BIN_INSTALL_DIR)" 46 @echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/"