Pass LDFLAGS instead of CFLAGS in the linking stage - farbfeld - suckless image format with conversion tools
(HTM) git clone git://git.suckless.org/farbfeld
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0aaa36464a4ad965a3d747cc6df16137c7b5d6c5
(DIR) parent ef433a6baa3449f5a5ec7a6fd09efdd0ea6fb57b
(HTM) Author: Laslo Hunhold <dev@frign.de>
Date: Thu, 30 Mar 2017 08:59:52 +0200
Pass LDFLAGS instead of CFLAGS in the linking stage
Diffstat:
M Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -4,6 +4,7 @@
include config.mk
+REQ = util
HDR = arg.h
BIN = png2ff ff2png jpg2ff ff2jpg ff2pam ff2ppm
SCR = 2ff
@@ -13,7 +14,7 @@ MAN5 = farbfeld.5
all: $(BIN)
.o: $(REQ:=.o)
- $(CC) $(CFLAGS) $($*-LDFLAGS) -o $@ $< $(REQ:=.o)
+ $(CC) $(LDFLAGS) $($*-LDFLAGS) -o $@ $< $(REQ:=.o)
$(BIN:=.o): config.mk $(HDR) $(REQ:=.h)