mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
Reset default -g -O2 flags when enable debug
This commit is contained in:
parent
7c32b414b6
commit
9882d1f044
1 changed files with 4 additions and 0 deletions
|
@ -243,6 +243,10 @@ AC_LANG_PUSH([C++])
|
||||||
AX_CHECK_COMPILE_FLAG([-Werror],[CXXFLAG_WERROR="-Werror"],[CXXFLAG_WERROR=""])
|
AX_CHECK_COMPILE_FLAG([-Werror],[CXXFLAG_WERROR="-Werror"],[CXXFLAG_WERROR=""])
|
||||||
|
|
||||||
if test "x$enable_debug" = xyes; then
|
if test "x$enable_debug" = xyes; then
|
||||||
|
# Clear default -g -O2 flags
|
||||||
|
if test "x$CXXFLAGS_overridden" = xno; then
|
||||||
|
CXXFLAGS=""
|
||||||
|
fi
|
||||||
# Prefer -Og, fall back to -O0 if that is unavailable.
|
# Prefer -Og, fall back to -O0 if that is unavailable.
|
||||||
AX_CHECK_COMPILE_FLAG(
|
AX_CHECK_COMPILE_FLAG(
|
||||||
[-Og],
|
[-Og],
|
||||||
|
|
Loading…
Add table
Reference in a new issue