LDLIBS comes after object files when linking (required by newer GCC versions)
authorDamiano Boppart <damiano@pep-security.net>
Tue, 31 Oct 2017 15:14:29 +0100
changeset 22279766f8fe62dd
parent 2224 e1529b69bab3
child 2228 823086369b6c
LDLIBS comes after object files when linking (required by newer GCC versions)
test/Makefile
     1.1 --- a/test/Makefile	Tue Oct 31 12:41:20 2017 +0100
     1.2 +++ b/test/Makefile	Tue Oct 31 15:14:29 2017 +0100
     1.3 @@ -94,7 +94,7 @@
     1.4  	$(TEST_CMD_PFX) ./$<
     1.5  
     1.6  %_test : %_test.o test_util.o
     1.7 -	$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
     1.8 +	$(CXX) $^ $(LDFLAGS) $(LDLIBS) -o $@
     1.9  
    1.10  %_run : % test_home_
    1.11  	$(TEST_CMD_PFX) ./$<