From 5392327b479fd1b964fd72b3b3a0b5b3e04df3a6 Mon Sep 17 00:00:00 2001 From: Sarah Day Date: Wed, 27 Jul 2016 12:44:49 -0400 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/gss-kernel-lib/Makefile.in b/src/util/gss-kernel-lib/Makefile.in index f70f3c6550..82f53919a4 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) \ -- 2.47.2