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"