From 917f2c36e1ab7aa363c195527ce7fd6c8c292e8b Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 30 Nov 2016 12:37:47 +0100 Subject: [PATCH] btrfs-progs: test: fix static build of library-test The static variant of the test was broken, but not really used anyway. Use the right compilation and linking flags. Signed-off-by: David Sterba --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 6a6652c..5c4a995 100644 --- a/Makefile.in +++ b/Makefile.in @@ -449,9 +449,9 @@ library-test: $(libs_shared) library-test.o @echo " [TEST] $@" $(Q)./$@ -library-test.static: $(libs_static) library-test.o +library-test.static: $(libs_static) library-test.static.o @echo " [LD] $@" - $(Q)$(CC) $(CFLAGS) -o library-test-static library-test.o $(LDFLAGS) $(libs_static) + $(Q)$(CC) $(STATIC_CFLAGS) -o library-test.static library-test.static.o $(STATIC_LDFLAGS) $(libs_static) $(STATIC_LIBS) @echo " [TEST] $@" $(Q)./$@ -- 2.7.4