summaryrefslogtreecommitdiff
blob: ed9256f441df92f952a06bd55a9dc0db661275b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Respect CFLAGS in linking command

https://bugs.gentoo.org/show_bug.cgi?id=508426

Patch written by Julian Ospald <hasufell@gentoo.org>
--- a/src/i3.mk
+++ b/src/i3.mk
@@ -64,7 +64,7 @@ i3-config-parser.stamp: generate-command-parser.pl parser-specs/config.spec
 
 i3: libi3.a $(i3_OBJECTS)
 	echo "[i3] Link i3"
-	$(CC) $(I3_LDFLAGS) $(LDFLAGS) -o $@ $(filter-out libi3.a,$^) $(LIBS) $(i3_LIBS)
+	$(CC) $(CFLAGS) $(I3_LDFLAGS) $(LDFLAGS) -o $@ $(filter-out libi3.a,$^) $(LIBS) $(i3_LIBS)
 
 install-i3: i3
 	echo "[i3] Install"