# HG changeset patch # User ihse # Date 1519686294 -3600 # Node ID 9aa8244e6b5dd63e2749b4c4edde81ee7727197a # Parent 3252878c255721069786a8f2cabe1e7292d50209 Fix -g0 for C++ on solstudio. diff -r 3252878c2557 -r 9aa8244e6b5d make/autoconf/flags-cflags.m4 --- a/make/autoconf/flags-cflags.m4 Mon Feb 26 23:49:28 2018 +0100 +++ b/make/autoconf/flags-cflags.m4 Tue Feb 27 00:04:54 2018 +0100 @@ -494,7 +494,9 @@ fi if test "x$DEBUG_LEVEL" != xrelease; then - DEBUG_SYMBOLS_CFLAGS_JDK="$CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" + DEBUG_OPTIONS_FLAGS_JDK="$CFLAGS_DEBUG_OPTIONS" + DEBUG_SYMBOLS_CFLAGS_JDK="$CFLAGS_DEBUG_SYMBOLS" + DEBUG_SYMBOLS_CXXFLAGS_JDK="$CXXFLAGS_DEBUG_SYMBOLS" fi #### TOOLCHAIN DEFINES @@ -822,16 +824,17 @@ $WARNING_CFLAGS $WARNING_CFLAGS_JVM $JVM_PICFLAG" CFLAGS_JDK_COMMON="$ALWAYS_CFLAGS_JDK $ALWAYS_DEFINES_JDK $TOOLCHAIN_CFLAGS_JDK \ - $OS_CFLAGS $CFLAGS_OS_DEF_JDK $DEBUG_CFLAGS_JDK $DEBUG_SYMBOLS_CFLAGS_JDK \ + $OS_CFLAGS $CFLAGS_OS_DEF_JDK $DEBUG_CFLAGS_JDK $DEBUG_OPTIONS_FLAGS_JDK \ $WARNING_CFLAGS $WARNING_CFLAGS_JDK" # Use ${$2EXTRA_CFLAGS} to block EXTRA_CFLAGS to be added to build flags. # (Currently we don't have any OPENJDK_BUILD_EXTRA_CFLAGS, but that might # change in the future.) - CFLAGS_JDK_COMMON_CONLY="$TOOLCHAIN_CFLAGS_JDK_CONLY $WARNING_CFLAGS_JDK_CONLY ${$2EXTRA_CFLAGS}" + CFLAGS_JDK_COMMON_CONLY="$TOOLCHAIN_CFLAGS_JDK_CONLY $DEBUG_SYMBOLS_CFLAGS_JDK \ + $WARNING_CFLAGS_JDK_CONLY ${$2EXTRA_CFLAGS}" CFLAGS_JDK_COMMON_CXXONLY="$ALWAYS_DEFINES_JDK_CXXONLY $TOOLCHAIN_CFLAGS_JDK_CXXONLY \ - $WARNING_CFLAGS_JDK_CXXONLY ${$2EXTRA_CXXFLAGS}" + $DEBUG_SYMBOLS_CXXFLAGS_JDK $WARNING_CFLAGS_JDK_CXXONLY ${$2EXTRA_CXXFLAGS}" $1_CFLAGS_JVM="${$1_DEFINES_CPU_JVM} ${$1_CFLAGS_CPU} ${$1_CFLAGS_CPU_JVM} ${$1_TOOLCHAIN_CFLAGS} ${$1_WARNING_CFLAGS_JVM}" $1_CFLAGS_JDK="${$1_DEFINES_CPU_JDK} ${$1_CFLAGS_CPU} ${$1_CFLAGS_CPU_JDK} ${$1_TOOLCHAIN_CFLAGS}"