Commit 9faa0c30d47dd80e53dbc0d240c5294f60bb52c4

Thomas de Grivel 2023-10-16T00:12:08

-no-undefined in LDFLAGS, breaks debug build of libtommath components

diff --git a/c3.version b/c3.version
index 6e8bf73..c946ee6 100644
--- a/c3.version
+++ b/c3.version
@@ -1 +1 @@
-0.1.0
+0.1.6
diff --git a/c3s/configure b/c3s/configure
index a6b159b..ebd250f 100755
--- a/c3s/configure
+++ b/c3s/configure
@@ -43,9 +43,7 @@ CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
 DEFAULT_CFLAGS="-O2 -pipe -fPIC"
 LDFLAGS="${LDFLAGS}"
-if [ "x$CC" != "xtcc" ]; then
-    LDFLAGS="-Wl,--allow-shlib-undefined ${LDFLAGS}"
-fi
+LDFLAGS="-no-undefined ${LDFLAGS}"
 LIBS="${LIBS:=-lm}"
 
 # Common config for all targets
diff --git a/ic3/configure b/ic3/configure
index 8a0c883..e9b8101 100755
--- a/ic3/configure
+++ b/ic3/configure
@@ -43,9 +43,7 @@ CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
 DEFAULT_CFLAGS="-O2 -pipe -fPIC"
 LDFLAGS="${LDFLAGS}"
-if [ "x$CC" != "xtcc" ]; then
-    LDFLAGS="-Wl,--allow-shlib-undefined ${LDFLAGS}"
-fi
+LDFLAGS="-no-undefined ${LDFLAGS}"
 LIBS="${LIBS:=-lm}"
 
 # Common config for all targets
diff --git a/libc3/configure b/libc3/configure
index 0c4bc44..0500fe4 100755
--- a/libc3/configure
+++ b/libc3/configure
@@ -35,9 +35,7 @@ CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
 DEFAULT_CFLAGS="-O2 -pipe"
 LDFLAGS="--shared ${LDFLAGS:-}"
-if [ "x$CC" != "xtcc" ]; then
-    LDFLAGS="-Wl,--allow-shlib-undefined ${LDFLAGS}"
-fi
+LDFLAGS="-no-undefined ${LDFLAGS}"
 LIBS="${LIBS} -lm -pthread -rpath ${PREFIX}/lib"
 
 # Common config for all targets
diff --git a/libtommath b/libtommath
index 0fc5789..53d68d4 160000
--- a/libtommath
+++ b/libtommath
@@ -1 +1 @@
-Subproject commit 0fc578923d33e4838934acf7924581f7f6fec1cf
+Subproject commit 53d68d45868a57bdd9d0bcf52d7e490a884feb8a
diff --git a/math/configure b/math/configure
index eed3b55..4bd6b47 100755
--- a/math/configure
+++ b/math/configure
@@ -42,7 +42,7 @@ echo "OBJECTS_DEBUG = $OBJECTS_DEBUG" >> ${CONFIG_MK}
 CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
 DEFAULT_CFLAGS="-O2 -pipe -fPIC"
-LDFLAGS="-Wl,--allow-shlib-undefined ${LDFLAGS:-}"
+LDFLAGS="-no-undefined ${LDFLAGS}"
 LIBS="${LIBS:=-lm}"
 
 # Common config for all targets
diff --git a/test/configure b/test/configure
index 096292d..2f27783 100755
--- a/test/configure
+++ b/test/configure
@@ -43,9 +43,7 @@ CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
 DEFAULT_CFLAGS="-O2 -pipe"
 LDFLAGS="${LDFLAGS}"
-if [ "x$CC" != "xtcc" ]; then
-    LDFLAGS="-Wl,--allow-shlib-undefined ${LDFLAGS}"
-fi
+LDFLAGS="-no-undefined ${LDFLAGS}"
 LIBS="${LIBS:=} -lm"
 
 # Common config for all targets