suckless image format with conversion tools
git clone git://git.suckless.org/farbfeld
Log | Files | Refs | README | LICENSE

commit 80aabad7cb520fd890dfb82d35da30a9300ee439
parent 00dd0ab39f634729ec5d99b8057b9cef6fa0f23e
Author: Laslo Hunhold <dev@frign.de>
Date:   Sun, 16 Apr 2017 23:22:25 +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!

MMakefile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)