Reset default -g -O2 flags when enable debug
This commit is contained in:
parent
45e203181a
commit
88c9e22eb2
|
@ -188,6 +188,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…
Reference in New Issue