changeset 5807:080c1762f7a1

Use CPPFLAGS when building modules. See xemacs-patches message <CAHCOHQn_3ca3-LoXVo+9rYn-dFPMh3mE2__dSWO5AH_Bsn1u9g@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Fri, 15 Aug 2014 10:39:19 -0600
parents 2dee57a2c2d6
children 1b984807a299
files modules/ChangeLog modules/common/Makefile.common
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/ChangeLog	Wed Aug 06 10:19:25 2014 +0100
+++ b/modules/ChangeLog	Fri Aug 15 10:39:19 2014 -0600
@@ -1,3 +1,7 @@
+2014-08-11  Jerry James  <james@xemacs.org>
+
+	* common/Makefile.common (CPPFLAGS): New variable.
+
 2013-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* XEmacs 21.5.34 "kale" is released.
--- a/modules/common/Makefile.common	Wed Aug 06 10:19:25 2014 +0100
+++ b/modules/common/Makefile.common	Fri Aug 15 10:39:19 2014 -0600
@@ -35,6 +35,7 @@
 RM=rm -f
 PROGNAME=@PROGNAME@
 CFLAGS=@XE_CFLAGS@
+CPPFLAGS=@CPPFLAGS@
 INSTALL=@INSTALL@
 version=@version@
 prefix=@prefix@
@@ -67,7 +68,7 @@
 all: $(OBJECT_TO_BUILD)
 
 .c.o:
-	$(MODCC) $(MODCFLAGS) -c $<
+	$(MODCC) $(MODCFLAGS) $(CPPFLAGS) -c $<
 
 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o $(IMPORT_LIB)
 	$(MODCC) --mode=link --mode=verbose --mod-output=$@ \