summaryrefslogtreecommitdiff
blob: 61502e55543f80c5c87c65a48f759a4ea1ecab1a (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@
 $(BIN:=.o): config.mk $(HDR) $(REQ:=.h)
 
 .o:
-	$(CC) $(LDFLAGS) $($*-LDFLAGS) -o $@ $< $(REQ:=.o)
+	$(CC) $(LDFLAGS) -o $@ $< $(REQ:=.o) $($*-LDFLAGS)
 
 clean:
 	rm -f $(BIN) $(BIN:=.o) $(REQ:=.o)