[hackers] [farbfeld] Bring cc-command-line in order || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Sun, 16 Apr 2017 23:32:23 +0200 (CEST)

commit 80aabad7cb520fd890dfb82d35da30a9300ee439
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Sun Apr 16 23:22:25 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Sun Apr 16 23:24:43 2017 +0200

    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!

diff --git a/Makefile b/Makefile
index ca1949b..baf2d41 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -23,7 +23,7 @@ $(BIN): $(REQ:=.o)
 $(BIN:=.o): config.mk $(HDR) $(REQ:=.h)
 
 .o:
- $(CC) $(LDFLAGS) $($*-LDFLAGS) -o $_AT_ $< $(REQ:=.o)
+ $(CC) -o $_AT_ $< $(REQ:=.o) $($*-LDFLAGS) $(LDFLAGS)
 
 clean:
         rm -f $(BIN) $(BIN:=.o) $(REQ:=.o)
Received on Sun Apr 16 2017 - 23:32:23 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 16 2017 - 23:36:22 CEST