Commit acbc23701af41e066d058b41a287c0e21adc1edd

Thomas de Grivel 2023-03-15T18:28:54

configure Makefile

diff --git a/libc3/Makefile b/libc3/Makefile
index 9c5c2fe..1c98a88 100644
--- a/libc3/Makefile
+++ b/libc3/Makefile
@@ -19,7 +19,7 @@ CLEANFILES += ${CLEANFILES_COV}
 
 DISTCLEANFILES = ${CLEANFILES} config.h config.mk
 
-build: libc3.la libc3.a
+build: libc3.la
 
 all:
 	${MAKE} build
@@ -27,7 +27,7 @@ all:
 	${MAKE} debug
 	if ${HAVE_ASAN}; then ${MAKE} asan; fi
 
-asan: libc3_asan.la libc3_asan.a
+asan: libc3_asan.la
 
 clean:
 	rm -rf ${CLEANFILES}
@@ -35,9 +35,9 @@ clean:
 clean_cov:
 	rm -rf ${CLEANFILES_COV}
 
-cov: libc3_cov.la libc3_cov.a
+cov: libc3_cov.la
 
-debug: libc3_debug.la libc3_debug.a
+debug: libc3_debug.la
 
 distclean:
 	rm -rf ${DISTCLEANFILES}
diff --git a/libc3/configure b/libc3/configure
index 3b4bb90..f5ee568 100755
--- a/libc3/configure
+++ b/libc3/configure
@@ -35,7 +35,7 @@ OBJECTS_DEBUG="$(c2ext .debug.lo "$LO_SOURCES")"
 CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
 DEFAULT_CFLAGS="-O2 -pipe -fPIC"
-LDFLAGS="${LDFLAGS:=}"
+LDFLAGS="${LDFLAGS:-} -shared"
 LIBS="${LIBS:=-lm}"
 
 # Common config for all targets