From d4404ea9c7a5f37e148d22dbe05d804f2df93b11 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 11 Jan 2008 23:40:22 +0000 Subject: Ensure we link against libraries in /lib instead of anywhere else and always use the linker in /libexec instead of anywhere else. --- mk/lib.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mk/lib.mk') diff --git a/mk/lib.mk b/mk/lib.mk index 43856bf2..825af96d 100644 --- a/mk/lib.mk +++ b/mk/lib.mk @@ -25,6 +25,8 @@ lib${LIB}.a: ${OBJS} ${STATICOBJS} ${SHLIB_NAME}: ${VERSION_MAP} LDFLAGS+= -Wl,--version-script=${VERSION_MAP} +# We need to ensure we use libraries in /lib +LDFLAGS+= -L/${LIBNAME} -Wl,-rpath=/${LIBNAME} ${SHLIB_NAME}: ${SOBJS} @${ECHO} building shared library $@ -- cgit v1.2.3