File: src-Makefile-use-CPPFLAGS-too-while-compiling.patch

package info (click to toggle)
libpam-radius-auth 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 996 kB
  • sloc: sh: 2,840; ansic: 1,624; makefile: 83
file content (25 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Christoph Goehre <chris@sigxcpu.org>
Date: Fri, 18 Aug 2023 17:48:10 +0200
Subject: src/Makefile: use CPPFLAGS (too) while compiling

---
 src/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 36ad14a..9133d2d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,10 +1,10 @@
 all: pam_radius_auth.o md5.o
 
 pam_radius_auth.o: pam_radius_auth.c pam_radius_auth.h config.h
-	$(CC) $(CFLAGS) -c $< -o $@
+	$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
 
 md5.o: md5.c md5.h
-	$(CC) $(CFLAGS) -c $< -o $@
+	$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
 
 .PHONY: clean
 clean: