aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandrew <none@none>2013-05-22 13:49:12 +0100
committerandrew <none@none>2013-05-22 13:49:12 +0100
commitd84c33e4a29739d2e4031b5cee8e8eb6d2014168 (patch)
treeae598fdc1394a6f0a9068a4cd8dff63d1807b9f0
parent6820d8dfe02d40d6013d44c1b26913368cc1f6a2 (diff)
8015087: Provide debugging information for programsjdk8-b91
Summary: Enable debugging info on programs in OpenJDK builds Reviewed-by: erikj
-rw-r--r--common/makefiles/NativeCompilation.gmk12
1 files changed, 9 insertions, 3 deletions
diff --git a/common/makefiles/NativeCompilation.gmk b/common/makefiles/NativeCompilation.gmk
index 2e084ea..c3b2766 100644
--- a/common/makefiles/NativeCompilation.gmk
+++ b/common/makefiles/NativeCompilation.gmk
@@ -321,11 +321,17 @@ define SetupNativeCompilation
ifneq (,$$($1_DEBUG_SYMBOLS))
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
- # Programs don't get the debug symbols added in the old build. It's not clear if
- # this is intentional.
- ifeq ($$($1_PROGRAM),)
+ ifdef OPENJDK
+ # Always add debug symbols
$1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
$1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
+ else
+ # Programs don't get the debug symbols added in the old build. It's not clear if
+ # this is intentional.
+ ifeq ($$($1_PROGRAM),)
+ $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
+ $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
+ endif
endif
endif
endif