From 18b1364e68d155a842fc7b054a4d1e916c69e40a Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 30 Nov 2016 12:34:17 +0100 Subject: btrfs-progs: tests: add correct rpath to library-test Our library-test dynamically linked binary was not using the built libbtrfs. To fix that, use -rpath. Reported-by: Mike Gilbert Signed-off-by: David Sterba --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 240df7a0..6a6652c5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -445,7 +445,7 @@ test-ioctl: ioctl-test ioctl-test-32 ioctl-test-64 library-test: $(libs_shared) library-test.o @echo " [LD] $@" - $(Q)$(CC) $(CFLAGS) -o library-test library-test.o $(LDFLAGS) -lbtrfs + $(Q)$(CC) $(CFLAGS) -o library-test library-test.o $(LDFLAGS) -Wl,-rpath=$(TOPDIR) -lbtrfs @echo " [TEST] $@" $(Q)./$@ -- cgit v1.2.3