From: Michael Tremer Date: Sat, 15 Feb 2025 11:49:32 +0000 (+0000) Subject: tcl: Add an SONAME to libtcl X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afac22edd107ed3857da0601dce84d58d61472ef;p=ipfire-3.x.git tcl: Add an SONAME to libtcl This is necessary for out dependency tracking to work. Signed-off-by: Michael Tremer --- diff --git a/tcl/patches/tcl-8.6.15-conf.patch b/tcl/patches/tcl-8.6.15-conf.patch new file mode 100644 index 000000000..5a20be7a3 --- /dev/null +++ b/tcl/patches/tcl-8.6.15-conf.patch @@ -0,0 +1,22 @@ +diff --git a/tcl.m4 b/tcl.m4 +index 7f5464e..c844c4d 100644 +--- a/tcl.m4 ++++ b/tcl.m4 +@@ -1378,7 +1378,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ + # get rid of the warnings. + #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" + +- SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' ++ SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared -fPIC -Wl,-soname,${@}' + DL_OBJS="tclLoadDl.o" + DL_LIBS="-ldl" + LDFLAGS="$LDFLAGS -Wl,--export-dynamic" +@@ -1394,7 +1394,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ + esac + + AS_IF([test $doRpath = yes], [ +- CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"']) ++ CC_SEARCH_FLAGS='']) + LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} + AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"]) + AS_IF([test $do64bit = yes], [ diff --git a/tcl/tcl.nm b/tcl/tcl.nm index 19e5024d2..7f137f4a4 100644 --- a/tcl/tcl.nm +++ b/tcl/tcl.nm @@ -6,7 +6,7 @@ name = tcl major_ver = 8.6 version = %{major_ver}.13 -release = 2 +release = 3 thisapp = tcl%{version} groups = Development/Languages @@ -39,6 +39,9 @@ build prepare_cmds # Don't build support for sqlite3. rm -rf %{DIR_SRC}/%{thisapp}/pkgs/sqlite3* + + # Apply changes + autoconf end configure_options += \