1.1 --- a/make/solaris/makefiles/gcc.make Thu Dec 02 14:00:03 2010 -0500 1.2 +++ b/make/solaris/makefiles/gcc.make Wed Dec 01 15:04:06 2010 +0100 1.3 @@ -47,11 +47,14 @@ 1.4 1.5 # check for precompiled headers support 1.6 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0" 1.7 +# Allow the user to turn off precompiled headers from the command line. 1.8 +ifneq ($(USE_PRECOMPILED_HEADER),0) 1.9 USE_PRECOMPILED_HEADER=1 1.10 PRECOMPILED_HEADER_DIR=. 1.11 PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled.hpp 1.12 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch 1.13 endif 1.14 +endif 1.15 1.16 1.17 #------------------------------------------------------------------------ 1.18 @@ -138,6 +141,11 @@ 1.19 DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) 1.20 endif 1.21 1.22 +# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. 1.23 +ifneq ($(USE_PRECOMPILED_HEADER),1) 1.24 +CFLAGS += -DDONT_USE_PRECOMPILED_HEADER 1.25 +endif 1.26 + 1.27 #------------------------------------------------------------------------ 1.28 # Linker flags 1.29