[PATCH 21.5] Use CPPFLAGS when building modules

Jerry James <[email protected]> Mon, 11 Aug 2014 15:05:39 -0600
Newsgroups gmane.emacs.xemacs.patches
Message-ID <CAHCOHQn_3ca3-LoXVo+9rYn-dFPMh3mE2__dSWO5AH_Bsn1u9g@mail.gmail.com>
PATCH 21.5

The lack of this causes my TLS-ized source tree to fail to build when I
enable modules, because the necessary -I flags are not being passed to the
compiler.  This seems like a good idea, anyway, as modules may very well
depend on nonstandard include paths that were passed to configure.

diff -r 2dee57a2c2d6 modules/ChangeLog
--- a/modules/ChangeLog Wed Aug 06 10:19:25 2014 +0100
+++ b/modules/ChangeLog Mon Aug 11 15:04:24 2014 -0600
@@ -1,3 +1,7 @@
+2014-08-11  Jerry James  <[email protected]>
+
+ * common/Makefile.common (CPPFLAGS): New variable.
+
 2013-06-23  Stephen J. Turnbull  <[email protected]>

  * XEmacs 21.5.34 "kale" is released.
diff -r 2dee57a2c2d6 modules/common/Makefile.common
--- a/modules/common/Makefile.common Wed Aug 06 10:19:25 2014 +0100
+++ b/modules/common/Makefile.common Mon Aug 11 15:01:27 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=$@ \

-- 
Jerry James
http://www.jamezone.org/

_______________________________________________
XEmacs-Patches mailing list
[email protected]
http://lists.xemacs.org/mailman/listinfo/xemacs-patches