]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Move CFLAGS and CPPFLAGS after local includes
authorSarah Day <sarahday@mit.edu>
Wed, 27 Jul 2016 16:44:49 +0000 (12:44 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 27 Jul 2016 19:44:08 +0000 (15:44 -0400)
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

index f70f3c6550e47337515265b846ee345d6fc4f08d..82f53919a4fe999f88994036cd26b0457cb1b4bd 100644 (file)
@@ -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) \