[hackers] [farbfeld] Pass LDFLAGS instead of CFLAGS in the linking stage || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Thu, 30 Mar 2017 09:00:07 +0200 (CEST)

commit 0aaa36464a4ad965a3d747cc6df16137c7b5d6c5
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Thu Mar 30 08:59:52 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Thu Mar 30 08:59:52 2017 +0200

    Pass LDFLAGS instead of CFLAGS in the linking stage

diff --git a/Makefile b/Makefile
index 92679b4..e1e954d 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -4,6 +4,7 @@
 
 include config.mk
 
+REQ = util
 HDR = arg.h
 BIN = png2ff ff2png jpg2ff ff2jpg ff2pam ff2ppm
 SCR = 2ff
_AT_@ -13,7 +14,7 @@ MAN5 = farbfeld.5
 all: $(BIN)
 
 .o: $(REQ:=.o)
- $(CC) $(CFLAGS) $($*-LDFLAGS) -o $_AT_ $< $(REQ:=.o)
+ $(CC) $(LDFLAGS) $($*-LDFLAGS) -o $_AT_ $< $(REQ:=.o)
 
 $(BIN:=.o): config.mk $(HDR) $(REQ:=.h)
 
Received on Thu Mar 30 2017 - 09:00:07 CEST

This archive was generated by hypermail 2.3.0 : Thu Mar 30 2017 - 09:12:13 CEST