File: buildsys-honor-cppflags.patch

package info (click to toggle)
kannel 1.4.5-22
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,284 kB
  • sloc: ansic: 105,659; sh: 32,211; xml: 20,360; php: 1,103; perl: 711; makefile: 583; yacc: 548; awk: 133; python: 122; javascript: 27; pascal: 3
file content (29 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (3)
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
26
27
28
29
From: Chris Hofstaedtler <zeha@debian.org>
Date: Fri, 27 Sep 2024 23:19:09 +0200
Subject: Fix upstream Makefile to include CPPFAGS

The upstream Makefile ignored the fact that $(CC) should be called
with CFLAGS _and_ CPPFLAGS. Restore this default make behaviour.

Forwarded: not-needed
---
 Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 15d7757..fb23287 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -222,10 +222,10 @@ figs = $(figsrcs:.fig=.png)  $(figsrcs:.fig=.ps)
 	else :; fi
 
 .c.o:
-	$(CC) $(CFLAGS) -o $@ -c $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
 	
 .c.i:
-	$(CC) $(CFLAGS) -o $@ -E $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -E $<
 
 all: $(libs) progs $(testprogs) $(checkprogs) $(DOCSTARGET) gw-config
 	for dir in $(SUBDIRS); do \