krb5 commit: Move CFLAGS and CPPFLAGS after local includes

Tom Yu tlyu at mit.edu
Wed Jul 27 15:58:37 EDT 2016


https://github.com/krb5/krb5/commit/5392327b479fd1b964fd72b3b3a0b5b3e04df3a6
commit 5392327b479fd1b964fd72b3b3a0b5b3e04df3a6
Author: Sarah Day <sarahday at mit.edu>
Date:   Wed Jul 27 12:44:49 2016 -0400

    Move CFLAGS and CPPFLAGS after local includes
    
    The gss-kernel-lib Makefile overrides ALL_CFLAGS.  It was setting
    the CFLAGS and CPPFLAGS to occur before local includes, which
    causes some compilers to include system header files before the
    local header files.  Moving the CPPFLAGS and CFLAGS to the end of
    ALL_CFLAGS corrects this behavior.

 src/util/gss-kernel-lib/Makefile.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/gss-kernel-lib/Makefile.in b/src/util/gss-kernel-lib/Makefile.in
index f70f3c6..82f5391 100644
--- a/src/util/gss-kernel-lib/Makefile.in
+++ b/src/util/gss-kernel-lib/Makefile.in
@@ -2,7 +2,7 @@ mydir=util/gss-kernel-lib
 BUILDTOP=$(REL)..$(S)..
 
 DEFINES=-DKRB5_KERNEL
-ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(WARN_CFLAGS) $(DEFS) $(DEFINES) -I. -Igssapi
+ALL_CFLAGS=$(WARN_CFLAGS) $(DEFS) $(DEFINES) -I. -Igssapi $(CPPFLAGS) $(CFLAGS)
 
 SHLIB_EXPDEPS = \
 	$(TOPLIBD)/libk5crypto$(SHLIBEXT) \


More information about the cvs-krb5 mailing list