Fix debug compilation when CFLAGS is set on the configure line.
(cherry picked from commit d5af7efeb88b0d8de12d68648f960fd8a8c9cdab)
This commit is contained in:
parent
0679697ffd
commit
c38724dfa9
@ -394,10 +394,11 @@ freebsd*)
|
|||||||
*)
|
*)
|
||||||
echo "Using non-specific system compiler settings"
|
echo "Using non-specific system compiler settings"
|
||||||
if test x"$enable_debug" = xyes; then
|
if test x"$enable_debug" = xyes; then
|
||||||
# AC_PROG_CC already sets CFLAGS to "-g -O2" by default
|
# AC_PROG_CC already sets CFLAGS to "-g -O2" by default,
|
||||||
|
# but only if CFLAGS was not previously set.
|
||||||
#:
|
#:
|
||||||
# Use -O0 in debug so that variables do not get optimized out
|
# Use -O0 in debug so that variables do not get optimized out
|
||||||
AX_CFLAGS_GCC_OPTION([-O0])
|
AX_CFLAGS_GCC_OPTION([-O0, -g])
|
||||||
else
|
else
|
||||||
# add optimise for size
|
# add optimise for size
|
||||||
AX_CFLAGS_GCC_OPTION([-Os])
|
AX_CFLAGS_GCC_OPTION([-Os])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user