Commit dce9207cfa7b15c1258362ebd4e4f19b64887e9a

Thomas de Grivel 2023-03-15T19:06:26

-fPIC --shared

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/libc3/configure b/libc3/configure
index f5ee568..20829d3 100755
--- a/libc3/configure
+++ b/libc3/configure
@@ -34,12 +34,12 @@ OBJECTS_DEBUG="$(c2ext .debug.lo "$LO_SOURCES")"
 # Default config
 CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
-DEFAULT_CFLAGS="-O2 -pipe -fPIC"
-LDFLAGS="${LDFLAGS:-} -shared"
+DEFAULT_CFLAGS="-O2 -pipe"
+LDFLAGS="${LDFLAGS:-} --shared"
 LIBS="${LIBS:=-lm}"
 
 # Common config for all targets
-CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic"
+CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic -fPIC"
 config_asan
 config_gnu
 pkg_config libbsd-overlay