2019-01-30 14:07:13 +00:00
|
|
|
diff --git openjdk.orig///common/autoconf/flags.m4 openjdk///common/autoconf/flags.m4
|
|
|
|
--- openjdk.orig///common/autoconf/flags.m4
|
|
|
|
+++ openjdk///common/autoconf/flags.m4
|
|
|
|
@@ -282,9 +282,11 @@
|
|
|
|
if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
|
|
|
|
CFLAGS_DEBUG_SYMBOLS="-g1"
|
|
|
|
CXXFLAGS_DEBUG_SYMBOLS="-g1"
|
|
|
|
+ ASFLAGS_DEBUG_SYMBOLS="-g1"
|
|
|
|
else
|
|
|
|
CFLAGS_DEBUG_SYMBOLS="-g"
|
|
|
|
CXXFLAGS_DEBUG_SYMBOLS="-g"
|
|
|
|
+ ASFLAGS_DEBUG_SYMBOLS="-g"
|
|
|
|
fi
|
|
|
|
elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
|
|
|
|
CFLAGS_DEBUG_SYMBOLS="-g -xs"
|
|
|
|
@@ -295,6 +297,7 @@
|
|
|
|
fi
|
|
|
|
AC_SUBST(CFLAGS_DEBUG_SYMBOLS)
|
|
|
|
AC_SUBST(CXXFLAGS_DEBUG_SYMBOLS)
|
2018-09-28 13:42:55 +00:00
|
|
|
+ AC_SUBST(ASFLAGS_DEBUG_SYMBOLS)
|
|
|
|
|
2019-01-30 14:07:13 +00:00
|
|
|
# Optimization levels
|
|
|
|
if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
|
|
|
|
diff --git openjdk.orig///common/autoconf/spec.gmk.in openjdk///common/autoconf/spec.gmk.in
|
|
|
|
--- openjdk.orig///common/autoconf/spec.gmk.in
|
|
|
|
+++ openjdk///common/autoconf/spec.gmk.in
|
2018-09-28 13:42:55 +00:00
|
|
|
@@ -414,6 +414,7 @@
|
|
|
|
# Options for generating debug symbols
|
|
|
|
ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
|
|
|
|
CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
|
|
|
|
+ASFLAGS_DEBUG_SYMBOLS:=@ASFLAGS_DEBUG_SYMBOLS@
|
|
|
|
CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
|
|
|
|
ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@
|
|
|
|
STRIP_POLICY:=@STRIP_POLICY@
|
2019-01-30 14:07:13 +00:00
|
|
|
diff --git openjdk.orig///make/common/NativeCompilation.gmk openjdk///make/common/NativeCompilation.gmk
|
|
|
|
--- openjdk.orig///make/common/NativeCompilation.gmk
|
|
|
|
+++ openjdk///make/common/NativeCompilation.gmk
|
|
|
|
@@ -351,12 +351,14 @@
|
|
|
|
# Always add debug symbols
|
|
|
|
$1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
|
|
|
|
$1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
|
|
|
|
+ $1_EXTRA_ASFLAGS+=$(ASFLAGS_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)
|
|
|
|
+ $1_EXTRA_ASFLAGS+=$(ASFLAGS_DEBUG_SYMBOLS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|