File: cppflags.patch

package info (click to toggle)
mbuffer 20230301%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,096 kB
  • sloc: ansic: 4,321; sh: 3,418; makefile: 160
file content (16 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Honor CPPFLAGS during compilation.
Forwarded: no
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2019-10-03

--- a/Makefile.in
+++ b/Makefile.in
@@ -57,7 +57,7 @@
 	mkdir build
 
 build/%.o: %.c
-	$(CC) $(CFLAGS) -c $< -o $@
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
 
 build/%.d: %.c
 	$(CC) -MM -MG -MT $(@:%.d=%.o) $(CFLAGS) $< -o $@