Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | From d6155ec08b355d64f1a7db407254d159037bb72a 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 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | Upstream-Status: Pending |
| 7 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 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 398afd0..804532e 100644 |
| 15 | --- a/unix/Makefile.in |
| 16 | +++ b/unix/Makefile.in |
| 17 | @@ -893,7 +893,10 @@ install-binaries: binaries |
| 18 | done |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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)/" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 29 | diff --git a/unix/tcl.m4 b/unix/tcl.m4 |
| 30 | index f3d08ec..797c93f 100644 |
| 31 | --- a/unix/tcl.m4 |
| 32 | +++ b/unix/tcl.m4 |
| 33 | @@ -1382,6 +1382,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" |