File: cppflags.patch

package info (click to toggle)
lua-lgi 0.9.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,376 kB
  • sloc: ansic: 5,082; makefile: 169; sh: 31
file content (26 lines) | stat: -rw-r--r-- 673 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
22
23
24
25
26
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Honour CPPFLAGS
Forwarded: https://github.com/lgi-devs/lgi/pull/248

--- a/lgi/Makefile
+++ b/lgi/Makefile
@@ -60,7 +60,7 @@
 	rm -f $(CORE) $(OBJS)
 
 %.o : %.c
-	$(CC) $(ALL_CFLAGS) -c -o $@ $<
+	$(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $<
 
 $(CORE) : $(OBJS)
 	$(CC) $(ALL_LDFLAGS) -o $@ $(OBJS) $(LIBS)
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -70,7 +70,7 @@
 	if [ ! -e /usr/share/gobject-introspection-1.0/tests/config.h ]; then\
 		touch config.h;\
 	fi
-	$(CC) -I . $(ALL_CFLAGS) -c -o $@ $<
+	$(CC) -I . $(CPPFLAGS) $(ALL_CFLAGS) -c -o $@ $<
 
 # Build .gir and .typelib
 Regress-1.0.gir : $(REGRESS)