Commit 5f18860dd1c93507c7a6e4d166c7761d81e2605f

Thomas de Grivel 2023-03-15T20:53:44

wip shared libraries

diff --git a/ic3/configure b/ic3/configure
index a93badf..4d5d0f6 100755
--- a/ic3/configure
+++ b/ic3/configure
@@ -43,7 +43,7 @@ echo "OBJECTS_DEBUG = $OBJECTS_DEBUG" >> ${CONFIG_MK}
 CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
 DEFAULT_CFLAGS="-O2 -pipe -fPIC"
-LDFLAGS="${LDFLAGS:=}"
+LDFLAGS="${LDFLAGS:-}"
 LIBS="${LIBS:=-lm}"
 
 # Common config for all targets
diff --git a/libc3/configure b/libc3/configure
index e74e481..dccbf00 100755
--- a/libc3/configure
+++ b/libc3/configure
@@ -36,7 +36,7 @@ CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
 DEFAULT_CFLAGS="-O2 -pipe"
 LDFLAGS="-shared ${LDFLAGS:-}"
-LIBS="${LIBS:=-lm} -rpath ${PREFIX}"
+LIBS="${LIBS:=-lm} -rpath ${PWD}"
 
 # Common config for all targets
 CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic -fPIC"
@@ -46,6 +46,7 @@ pkg_config libbsd-overlay
 pkg_config libffi
 pkg_config libmd
 config_lib libmd -lmd
+config_lib dl -ldl
 config_include sha_h sys/types.h sha.h HAVE_SHA_H
 config_include sha1_h sys/types.h sha1.h HAVE_SHA1_H
 config_define PREFIX "\"${PREFIX}\""
diff --git a/libtommath b/libtommath
index 936be18..b8ce37d 160000
--- a/libtommath
+++ b/libtommath
@@ -1 +1 @@
-Subproject commit 936be18d88d845dc7782dd406244b873fbc3ac03
+Subproject commit b8ce37d2566a02604815f1b6cd9e5d2fa41354a7