4117 |
4117 |
4118 |
4118 |
4119 |
4119 |
4120 |
4120 |
4121 |
4121 |
|
4122 # -g is already added by ENABLE_DEBUG_SYMBOLS and the hotspot makefiles |
|
4123 # will basically do slowdebug builds when DEBUG_BINARIES is set for |
|
4124 # fastdebug builds |
|
4125 DEBUG_BINARIES=false |
|
4126 # Fastdebug builds with this setting will essentially be slowdebug |
|
4127 # in hotspot. |
|
4128 # -g is already added by ENABLE_DEBUG_SYMBOLS and the hotspot makefiles |
|
4129 # will basically do slowdebug builds when DEBUG_BINARIES is set for |
|
4130 # fastdebug builds |
|
4131 DEBUG_BINARIES=false |
4122 # |
4132 # |
4123 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
4133 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
4124 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4134 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4125 # |
4135 # |
4126 # This code is free software; you can redistribute it and/or modify it |
4136 # This code is free software; you can redistribute it and/or modify it |
4837 # definitions. It is replaced with custom functionality when building |
4847 # definitions. It is replaced with custom functionality when building |
4838 # custom sources. |
4848 # custom sources. |
4839 #CUSTOM_AUTOCONF_INCLUDE |
4849 #CUSTOM_AUTOCONF_INCLUDE |
4840 |
4850 |
4841 # Do not change or remove the following line, it is needed for consistency checks: |
4851 # Do not change or remove the following line, it is needed for consistency checks: |
4842 DATE_WHEN_GENERATED=1452935762 |
4852 DATE_WHEN_GENERATED=1453279620 |
4843 |
4853 |
4844 ############################################################################### |
4854 ############################################################################### |
4845 # |
4855 # |
4846 # Initialization / Boot-strapping |
4856 # Initialization / Boot-strapping |
4847 # |
4857 # |
47029 elif test "x$TOOLCHAIN_TYPE" = xclang; then |
47039 elif test "x$TOOLCHAIN_TYPE" = xclang; then |
47030 CFLAGS_DEBUG_SYMBOLS="-g" |
47040 CFLAGS_DEBUG_SYMBOLS="-g" |
47031 CXXFLAGS_DEBUG_SYMBOLS="-g" |
47041 CXXFLAGS_DEBUG_SYMBOLS="-g" |
47032 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then |
47042 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then |
47033 CFLAGS_DEBUG_SYMBOLS="-g -xs" |
47043 CFLAGS_DEBUG_SYMBOLS="-g -xs" |
47034 # FIXME: likely a bug, this disables debug symbols rather than enables them |
47044 # -g0 enables debug symbols without disabling inlining. |
47035 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" |
47045 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" |
47036 elif test "x$TOOLCHAIN_TYPE" = xxlc; then |
47046 elif test "x$TOOLCHAIN_TYPE" = xxlc; then |
47037 CFLAGS_DEBUG_SYMBOLS="-g" |
47047 CFLAGS_DEBUG_SYMBOLS="-g" |
47038 CXXFLAGS_DEBUG_SYMBOLS="-g" |
47048 CXXFLAGS_DEBUG_SYMBOLS="-g" |
47039 fi |
47049 fi |
48269 # this is an error |
48279 # this is an error |
48270 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 |
48280 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 |
48271 fi |
48281 fi |
48272 fi |
48282 fi |
48273 |
48283 |
48274 ENABLE_DEBUG_SYMBOLS=true |
48284 COMPILE_WITH_DEBUG_SYMBOLS=true |
48275 ZIP_DEBUGINFO_FILES=true |
48285 COPY_DEBUG_SYMBOLS=true |
48276 # -g is already added by ENABLE_DEBUG_SYMBOLS and the hotspot makefiles |
48286 ZIP_EXTERNAL_DEBUG_SYMBOLS=true |
48277 # will basically do slowdebug builds when DEBUG_BINARIES is set for |
48287 |
48278 # fastdebug builds |
48288 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true |
48279 DEBUG_BINARIES=false |
48289 DEBUG_BINARIES=false |
48280 STRIP_POLICY=min_strip |
48290 STRIP_POLICY=min_strip |
|
48291 |
48281 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then |
48292 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then |
48282 ENABLE_DEBUG_SYMBOLS=false |
48293 COMPILE_WITH_DEBUG_SYMBOLS=false |
48283 ZIP_DEBUGINFO_FILES=false |
48294 COPY_DEBUG_SYMBOLS=false |
|
48295 ZIP_EXTERNAL_DEBUG_SYMBOLS=false |
|
48296 |
48284 DEBUG_BINARIES=false |
48297 DEBUG_BINARIES=false |
48285 STRIP_POLICY=no_strip |
48298 STRIP_POLICY=no_strip |
48286 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then |
48299 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then |
48287 ENABLE_DEBUG_SYMBOLS=false # -g option only |
48300 COMPILE_WITH_DEBUG_SYMBOLS=true |
48288 ZIP_DEBUGINFO_FILES=false |
48301 COPY_DEBUG_SYMBOLS=false |
48289 # Fastdebug builds with this setting will essentially be slowdebug |
48302 ZIP_EXTERNAL_DEBUG_SYMBOLS=false |
48290 # in hotspot. |
48303 |
|
48304 # Hotspot legacy support, will turn on -g when COPY_DEBUG_SYMBOLS=false |
48291 DEBUG_BINARIES=true |
48305 DEBUG_BINARIES=true |
48292 STRIP_POLICY=no_strip |
48306 STRIP_POLICY=no_strip |
48293 STRIP="" |
48307 STRIP="" |
|
48308 |
48294 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then |
48309 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then |
48295 |
48310 |
48296 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then |
48311 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then |
48297 if test "x$OBJCOPY" = x; then |
48312 if test "x$OBJCOPY" = x; then |
48298 # enabling of enable-debug-symbols and can't find objcopy |
48313 # enabling of enable-debug-symbols and can't find objcopy |
48299 # this is an error |
48314 # this is an error |
48300 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 |
48315 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 |
48301 fi |
48316 fi |
48302 fi |
48317 fi |
48303 |
48318 |
48304 ENABLE_DEBUG_SYMBOLS=true |
48319 COMPILE_WITH_DEBUG_SYMBOLS=true |
48305 ZIP_DEBUGINFO_FILES=false |
48320 COPY_DEBUG_SYMBOLS=true |
48306 # -g is already added by ENABLE_DEBUG_SYMBOLS and the hotspot makefiles |
48321 ZIP_EXTERNAL_DEBUG_SYMBOLS=false |
48307 # will basically do slowdebug builds when DEBUG_BINARIES is set for |
48322 |
48308 # fastdebug builds |
48323 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true |
48309 DEBUG_BINARIES=false |
48324 DEBUG_BINARIES=false |
48310 STRIP_POLICY=min_strip |
48325 STRIP_POLICY=min_strip |
48311 else |
48326 else |
48312 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 |
48327 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 |
48313 fi |
48328 fi |