From: David Sterba Date: Wed, 30 Nov 2016 11:34:17 +0000 (+0100) Subject: btrfs-progs: tests: add correct rpath to library-test X-Git-Tag: upstream/4.16.1~961 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18b1364e68d155a842fc7b054a4d1e916c69e40a;p=platform%2Fupstream%2Fbtrfs-progs.git 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 --- diff --git a/Makefile.in b/Makefile.in index 240df7a..6a6652c 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)./$@