make/solaris/makefiles/gcc.make

Print this page

        

*** 1,7 **** # ! # Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation. --- 1,7 ---- # ! # Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation.
*** 47,57 **** # check for precompiled headers support ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0" USE_PRECOMPILED_HEADER=1 PRECOMPILED_HEADER_DIR=. ! PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/incls/_precompiled.incl.gch endif #------------------------------------------------------------------------ # Compiler flags --- 47,58 ---- # check for precompiled headers support ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0" USE_PRECOMPILED_HEADER=1 PRECOMPILED_HEADER_DIR=. ! PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled.hpp ! PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch endif #------------------------------------------------------------------------ # Compiler flags
*** 129,138 **** --- 130,145 ---- ifeq ($(BUILDARCH), ia64) OPT_CFLAGS/bytecodeInterpreter.o += -fno-expensive-optimizations endif OPT_CFLAGS/NOOPT=-O0 + + # Flags for generating make dependency flags. + ifneq ("${CC_VER_MAJOR}", "2") + DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) + endif + #------------------------------------------------------------------------ # Linker flags # statically link libstdc++.so, work with gcc but ignored by g++ STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic