diff options
Diffstat (limited to 'meta/recipes-devtools/tcltk8/tcl8/tcl-add-soname.patch')
-rw-r--r-- | meta/recipes-devtools/tcltk8/tcl8/tcl-add-soname.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-devtools/tcltk8/tcl8/tcl-add-soname.patch b/meta/recipes-devtools/tcltk8/tcl8/tcl-add-soname.patch new file mode 100644 index 0000000000..898e8241fc --- /dev/null +++ b/meta/recipes-devtools/tcltk8/tcl8/tcl-add-soname.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 0d8e567d132e050c5d4a8d8d9257417e0679483c Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <rpurdie@linux.intel.com> | ||
3 | Date: Wed, 9 Dec 2009 23:59:44 +0000 | ||
4 | Subject: [PATCH] tcl: Add tcltk from OE.dev but with legacy staging function | ||
5 | |||
6 | Upstream-Status: Inappropriate [tcl 8.x is obsolete; upstream submission should be for 9.x patches] | ||
7 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
8 | --- | ||
9 | unix/Makefile.in | 5 ++++- | ||
10 | unix/tcl.m4 | 3 +++ | ||
11 | 2 files changed, 7 insertions(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/unix/Makefile.in b/unix/Makefile.in | ||
14 | index bc743b3..a2f9e21 100644 | ||
15 | --- a/unix/Makefile.in | ||
16 | +++ b/unix/Makefile.in | ||
17 | @@ -812,7 +812,10 @@ install-binaries: binaries | ||
18 | done | ||
19 | @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/" | ||
20 | @@INSTALL_LIB@ | ||
21 | - @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)" | ||
22 | + mv "$(DLL_INSTALL_DIR)"/$(LIB_FILE) "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0 | ||
23 | + ln -sf $(LIB_FILE).0 "$(DLL_INSTALL_DIR)"/$(LIB_FILE) | ||
24 | + ln -sf "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0 ./ | ||
25 | + @chmod 555 "$(DLL_INSTALL_DIR)"/$(LIB_FILE).0 | ||
26 | @echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}" | ||
27 | @$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}" | ||
28 | @echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/" | ||
29 | diff --git a/unix/tcl.m4 b/unix/tcl.m4 | ||
30 | index 7f5464e..cd8d929 100644 | ||
31 | --- a/unix/tcl.m4 | ||
32 | +++ b/unix/tcl.m4 | ||
33 | @@ -1378,6 +1378,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ | ||
34 | # get rid of the warnings. | ||
35 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" | ||
36 | |||
37 | + # following line added by CW for Debian GNU/Linux | ||
38 | + TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0" | ||
39 | + | ||
40 | SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' | ||
41 | DL_OBJS="tclLoadDl.o" | ||
42 | DL_LIBS="-ldl" | ||