jdk/make/common/Defs-solaris.gmk
changeset 12876 e1e6355c440a
parent 12853 7bdaa5aefd3d
equal deleted inserted replaced
12873:e7c4a8144e66 12876:e1e6355c440a
   229 
   229 
   230 # If Full Debug Symbols is enabled, then we want the same debug and
   230 # If Full Debug Symbols is enabled, then we want the same debug and
   231 # optimization flags as used by FASTDEBUG. We also want all the
   231 # optimization flags as used by FASTDEBUG. We also want all the
   232 # debug info in one place (-xs).
   232 # debug info in one place (-xs).
   233 #
   233 #
       
   234 CFLAGS_COMMON=
       
   235 CXXFLAGS_COMMON=
   234 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
   236 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
   235   ifeq ($(LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS),1)
   237   ifeq ($(LIBRARY_SUPPORTS_FULL_DEBUG_SYMBOLS),1)
   236     ifeq ($(VARIANT), OPT)
   238     ifeq ($(VARIANT), OPT)
   237       CC_OPT   = -g  -xs $(CC_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL))
   239       OPTIMIZATION_LEVEL = $(FASTDEBUG_OPTIMIZATION_LEVEL)
   238       CXX_OPT  = -g0 -xs $(CXX_OPT/$(FASTDEBUG_OPTIMIZATION_LEVEL))
   240       CFLAGS_COMMON += -g  -xs
       
   241       CXXFLAGS_COMMON += -g0 -xs
   239     endif
   242     endif
   240     CFLAGS_DEBUG_OPTION    += -xs
   243     CFLAGS_DEBUG_OPTION    += -xs
   241     CXXFLAGS_DEBUG_OPTION  += -xs
   244     CXXFLAGS_DEBUG_OPTION  += -xs
   242   endif
   245   endif
   243 endif
   246 endif
   244 
   247 
   245 CFLAGS_COMMON   = -L$(OBJDIR)
   248 CFLAGS_COMMON  += -L$(OBJDIR)
   246 
   249 
   247 # Do not allow C99 language features like declarations in code etc.
   250 # Do not allow C99 language features like declarations in code etc.
   248 CFLAGS_COMMON  += -xc99=%none
   251 CFLAGS_COMMON  += -xc99=%none
   249 
   252 
   250 # Allow C++ comments in C code
   253 # Allow C++ comments in C code