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/pavouk/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)
|