From 80aabad7cb520fd890dfb82d35da30a9300ee439 Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Sun, 16 Apr 2017 23:22:25 +0200 Subject: Bring cc-command-line in order Of course, you want the libraries to come last in order of execution. Additionally, in case the libraries provided with $($*-LDFLAGS) contain unresolved symbols, we want to give the opportunity for the user to provide the necessary general symbols, whatever they may be, last. Thanks Duncaen for reporting this! --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ca1949b..baf2d41 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ $(BIN): $(REQ:=.o) $(BIN:=.o): config.mk $(HDR) $(REQ:=.h) .o: - $(CC) $(LDFLAGS) $($*-LDFLAGS) -o $@ $< $(REQ:=.o) + $(CC) -o $@ $< $(REQ:=.o) $($*-LDFLAGS) $(LDFLAGS) clean: rm -f $(BIN) $(BIN:=.o) $(REQ:=.o) -- cgit v1.2.3