doc: explain why we clear CXXFLAGS with enable-debug

pull/24391/head
fanquake 3 years ago
parent 55ea6fd250
commit bc7cc57607
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

@ -361,7 +361,9 @@ case $host in
esac
if test "$enable_debug" = "yes"; then
dnl Clear default -g -O2 flags
dnl If debugging is enabled, and the user hasn't overriden CXXFLAGS, clear
dnl them, to prevent autoconfs "-g -O2" being added. Otherwise we'd end up
dnl with "-O0 -g3 -g -O2".
if test "$CXXFLAGS_overridden" = "no"; then
CXXFLAGS=""
fi

Loading…
Cancel
Save