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 <dsterba@suse.com>
This commit is contained in:
David Sterba 2016-11-30 12:37:47 +01:00
parent 18b1364e68
commit 917f2c36e1
1 changed files with 2 additions and 2 deletions

View File

@ -449,9 +449,9 @@ library-test: $(libs_shared) library-test.o
@echo " [TEST] $@" @echo " [TEST] $@"
$(Q)./$@ $(Q)./$@
library-test.static: $(libs_static) library-test.o library-test.static: $(libs_static) library-test.static.o
@echo " [LD] $@" @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] $@" @echo " [TEST] $@"
$(Q)./$@ $(Q)./$@