patch: honor CPPFLAGS in Make.rules
Todd Vierling
tv at pobox.com
Thu May 22 21:03:41 CDT 2003
Nearly all autoconf-based programs use CPPFLAGS to indicate flags to pass to
cc for compilation and/or cpp for preprocessing. This is different from
CFLAGS, which is intended for optimization and debugging flags specific to
compiling. It's even listed in "./configure --help".
The following will make the Wine build honor CPPFLAGS if set during
configuration:
Index: Make.rules.in
===================================================================
RCS file: /home/wine/wine/Make.rules.in,v
retrieving revision 1.157
diff -u -r1.157 Make.rules.in
--- Make.rules.in 6 May 2003 18:34:53 -0000 1.157
+++ Make.rules.in 23 May 2003 02:02:53 -0000
@@ -23,7 +23,7 @@
SHELL = /bin/sh
CC = @CC@
CPP = @CPP@
-CFLAGS = @CFLAGS@
+CFLAGS = @CPPFLAGS@ @CFLAGS@
LIBS = @LIBS@
YACC = @YACC@
LEX = @LEX@
--
-- Todd Vierling <tv at pobox.com>
More information about the wine-patches
mailing list