autogen: use -O0 for "autogen.sh c" after all

-Og actually breaks gdb still, so let's stick to -O0 for now, but
introduce "autogen.sh g" for those who don't need gdb.
This commit is contained in:
Lennart Poettering 2013-10-30 02:04:17 +01:00
parent d36679f72e
commit 0fc6e1ed00
1 changed files with 4 additions and 1 deletions

View File

@ -54,6 +54,9 @@ args="$args \
fi
if [ "x$1" = "xc" ]; then
./configure CFLAGS='-g -O0' $args
make clean
elif [ "x$1" = "xg" ]; then
./configure CFLAGS='-g -Og' $args
make clean
else
@ -62,6 +65,6 @@ else
echo "Initialized build system. For a common configuration please run:"
echo "----------------------------------------------------------------"
echo
echo "./configure CFLAGS='-g -Og' $args"
echo "./configure CFLAGS='-g -O0' $args"
echo
fi