]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
tcl: Add an SONAME to libtcl
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 11:49:32 +0000 (11:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 15 Feb 2025 11:49:32 +0000 (11:49 +0000)
This is necessary for out dependency tracking to work.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tcl/patches/tcl-8.6.15-conf.patch [new file with mode: 0644]
tcl/tcl.nm

diff --git a/tcl/patches/tcl-8.6.15-conf.patch b/tcl/patches/tcl-8.6.15-conf.patch
new file mode 100644 (file)
index 0000000..5a20be7
--- /dev/null
@@ -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], [
index 19e5024d2f28c0fb6c0c2f77836a1e48c06eb628..7f137f4a43f785031cdacb00f69918c06345b01f 100644 (file)
@@ -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 += \