Put the linker flags after the source files.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 28 Jun 2018 09:52:43 +0000 (11:52 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 28 Jun 2018 09:52:43 +0000 (11:52 +0200)
tests/Makefile

index 25b1169..097a3cb 100644 (file)
@@ -12,7 +12,7 @@ ${TEST_PROGS}: ../$(SRCDIR)/vimb.so
 
 test-%: test-%.c
        @echo "${CC} $@"
-       $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< ../$(SRCDIR)/vimb.so
+       $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< ../$(SRCDIR)/vimb.so $(LDFLAGS)
 
 clean:
        $(RM) $(TEST_PROGS)