Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Make the compiled test programs dynamically link against libpkg.so.1 in the build tree, rather than any copy that happens to be on the usual library search path.
Matthew Seaman committed 12 years ago
commit 2472aefbbc947f49079cfb6659cb9b8e49bb3e18
parent 9b806c7
1 file changed +2 -1
modified tests/lib/Makefile
@@ -5,7 +5,8 @@ test_SRCS= manifest.c \
		pkg.c

CFLAGS+=	-I../../libpkg
-
LDADD+=		-L../../libpkg	\
+
LDADD+=		-Wl,-rpath ${.CURDIR}/../../libpkg \
+
		-L../../libpkg	\
		-lpkg

.include "../bsd.tests.mk"