[PATCH] Separate CFLAGS and CPPFLAGS

Wilfredo Sanchez wsanchez at apple.com
Thu Dec 7 11:00:29 EST 2000


  If you want to override CFLAGS on the make line (eg. "make CFLAGS='-O3'"),
you lose because you end up stomping preprocessor flags as well.
Preprocessor should be in CPPFLAGS.  The following patch takes care of this.

	-Fred

Index: Makefile.in
===================================================================
RCS file: /cvs/Darwin/Services/OpenSSH/openssh/Makefile.in,v
retrieving revision 1.1.1.4
retrieving revision 1.8
diff -u -d -b -w -r1.1.1.4 -r1.8
--- Makefile.in 2000/12/06 21:56:06     1.1.1.4
+++ Makefile.in 2000/12/06 22:11:15     1.8
@@ -20,7 +20,8 @@
 CC=@CC@
 LD=@LD@
 PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
-CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
+CFLAGS=@CFLAGS@
+CPPFLAGS=@CPPFLAGS@ $(PATHS) @DEFS@ -I. -I$(srcdir)
 LIBS=@LIBS@
 AR=@AR@
 RANLIB=@RANLIB@

Wilfredo Sánchez, wsanchez at apple.com
Open Source Engineering Lead
Apple Computer, Inc., Core Operating System Group
1 Infinite Loop, Cupertino, CA 94086, 408.974-5174





More information about the openssh-unix-dev mailing list