btrfs-progs: test: fix static build of library-test
authorDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 11:37:47 +0000 (12:37 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 11:42:28 +0000 (12:42 +0100)
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>
Makefile.in

index 6a6652c..5c4a995 100644 (file)
@@ -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)./$@