< prev index next >

make/common/NativeCompilation.gmk

Print this page




 490     # Pickup extra debug dependent variables for CXXFLAGS
 491     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_debug)
 492     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS_TYPE)_debug)
 493     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS)_debug)
 494   else
 495     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_release)
 496     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS_TYPE)_release)
 497     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS)_release)
 498   endif
 499 
 500   # If no C++ flags are explicitly set, default to using the C flags.
 501   # After that, we can set additional C++ flags that should not interfere
 502   # with the mechanism for copying the C flags by default.
 503   ifeq ($$($1_CXXFLAGS),)
 504     $1_CXXFLAGS:=$$($1_CFLAGS)
 505   endif
 506   ifeq ($$(strip $$($1_EXTRA_CXXFLAGS)),)
 507     $1_EXTRA_CXXFLAGS:=$$($1_EXTRA_CFLAGS)
 508   endif
 509 




 510   ifeq ($$($1_DEBUG_SYMBOLS), true)
 511     ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
 512       ifdef OPENJDK
 513         # Always add debug symbols
 514         $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
 515         $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
 516       else
 517         # Programs don't get the debug symbols added in the old build. It's not clear if
 518         # this is intentional.
 519         ifeq ($$($1_PROGRAM),)
 520           $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
 521           $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
 522         endif
 523       endif
 524     endif
 525   endif
 526 
 527   ifneq (,$$($1_REORDER))
 528     $1_EXTRA_CFLAGS += $$(C_FLAG_REORDER)
 529     $1_EXTRA_CXXFLAGS += $$(CXX_FLAG_REORDER)




 490     # Pickup extra debug dependent variables for CXXFLAGS
 491     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_debug)
 492     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS_TYPE)_debug)
 493     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS)_debug)
 494   else
 495     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_release)
 496     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS_TYPE)_release)
 497     $1_EXTRA_CXXFLAGS+=$$($1_CXXFLAGS_$(OPENJDK_TARGET_OS)_release)
 498   endif
 499 
 500   # If no C++ flags are explicitly set, default to using the C flags.
 501   # After that, we can set additional C++ flags that should not interfere
 502   # with the mechanism for copying the C flags by default.
 503   ifeq ($$($1_CXXFLAGS),)
 504     $1_CXXFLAGS:=$$($1_CFLAGS)
 505   endif
 506   ifeq ($$(strip $$($1_EXTRA_CXXFLAGS)),)
 507     $1_EXTRA_CXXFLAGS:=$$($1_EXTRA_CFLAGS)
 508   endif
 509 
 510   ifeq ($(DEBUG_BINARIES), true)
 511     $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
 512     $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
 513   endif
 514   ifeq ($$($1_DEBUG_SYMBOLS), true)
 515     ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
 516       ifdef OPENJDK
 517         # Always add debug symbols
 518         $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
 519         $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
 520       else
 521         # Programs don't get the debug symbols added in the old build. It's not clear if
 522         # this is intentional.
 523         ifeq ($$($1_PROGRAM),)
 524           $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
 525           $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
 526         endif
 527       endif
 528     endif
 529   endif
 530 
 531   ifneq (,$$($1_REORDER))
 532     $1_EXTRA_CFLAGS += $$(C_FLAG_REORDER)
 533     $1_EXTRA_CXXFLAGS += $$(CXX_FLAG_REORDER)


< prev index next >