comparison make/bsd/makefiles/gcc.make @ 6129:4d399f013e5a

7175914: Usage of gcc with precompiled headers produces wrong build dependencies Summary: Add -fpch-deps flag to gcc builds Reviewed-by: kamg, coleenp Contributed-by: volker.simonis@gmail.com
author kamg
date Mon, 11 Jun 2012 13:10:14 -0400
parents 3d7ea1dbe0de
children b9a9ed0f8eeb fb19af007ffc
comparison
equal deleted inserted replaced
6128:0a8b8cb8b22c 6129:4d399f013e5a
212 OPT_CFLAGS/mulnode.o += -O0 212 OPT_CFLAGS/mulnode.o += -O0
213 endif 213 endif
214 214
215 # Flags for generating make dependency flags. 215 # Flags for generating make dependency flags.
216 ifneq ("${CC_VER_MAJOR}", "2") 216 ifneq ("${CC_VER_MAJOR}", "2")
217 DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) 217 DEPFLAGS = -fpch-deps -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
218 endif 218 endif
219 219
220 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. 220 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
221 ifeq ($(USE_PRECOMPILED_HEADER),0) 221 ifeq ($(USE_PRECOMPILED_HEADER),0)
222 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER 222 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER