< prev index next >

make/common/NativeCompilation.gmk

Print this page




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




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




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


< prev index next >