File: Use-CPPFLAGS-during-compile-step.patch

package info (click to toggle)
mbpfan 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 344 kB
  • sloc: ansic: 1,879; sh: 144; makefile: 70
file content (21 lines) | stat: -rw-r--r-- 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Chow Loong Jin <hyperair@debian.org>
Date: Wed, 11 Sep 2019 12:34:36 +0800
Subject: Use CPPFLAGS during compile step

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

diff --git a/Makefile b/Makefile
index d5223ae..7de7ee9 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ OBJS := $(patsubst %.$(C),%.$(OBJ),$(wildcard $(SOURCE_PATH)*.$(C)))
 %.$(OBJ):%.$(C)
 	mkdir -p bin
 	@echo Compiling $(basename $<)...
-	$(CC) -c $(CFLAGS) $< $(OBJFLAG)$@
+	$(CC) -c $(CPPFLAGS) $(CFLAGS) $< $(OBJFLAG)$@
 
 all: $(BIN)