From e11315343f7b91440aacaf5bc42c691ae0dd96ff Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 24 Nov 2016 11:30:06 +0100 Subject: [PATCH] btrfs-progs: build: link against local libraries If there's a system provided libbtrfs.0, it will be used for the library-test build and could miss linker errors, as reported. Reported-by: Mike Gilbert Signed-off-by: David Sterba --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 79dfcf5..240df7a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -73,7 +73,7 @@ CFLAGS = @CFLAGS@ \ $(EXTRA_CFLAGS) LDFLAGS = @LDFLAGS@ \ - -rdynamic $(EXTRA_LDFLAGS) + -rdynamic -L$(TOPDIR) $(EXTRA_LDFLAGS) LIBS = @UUID_LIBS@ @BLKID_LIBS@ @ZLIB_LIBS@ @LZO2_LIBS@ -L. -pthread LIBBTRFS_LIBS = $(LIBS) -- 2.7.4