Commit d862cf49155e789912266315b34f878cb074bc53

Thomas de Grivel 2023-03-15T19:21:38

-rpath

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/libc3/configure b/libc3/configure
index 20829d3..e74e481 100755
--- a/libc3/configure
+++ b/libc3/configure
@@ -35,8 +35,8 @@ OBJECTS_DEBUG="$(c2ext .debug.lo "$LO_SOURCES")"
 CPPFLAGS="${CPPFLAGS:=}"
 ENV_CFLAGS="${CFLAGS:=}"
 DEFAULT_CFLAGS="-O2 -pipe"
-LDFLAGS="${LDFLAGS:-} --shared"
-LIBS="${LIBS:=-lm}"
+LDFLAGS="-shared ${LDFLAGS:-}"
+LIBS="${LIBS:=-lm} -rpath ${PREFIX}"
 
 # Common config for all targets
 CFLAGS="$CFLAGS -W -Wall -Werror -std=c99 -pedantic -fPIC"