summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-10-30 02:04:17 +0100
committerLennart Poettering <lennart@poettering.net>2013-10-30 02:08:57 +0100
commit0fc6e1ed00ee1af4282e46d40ceb07b3afedebef (patch)
tree31ef73754bf3ae542dab03335d010236459080a7 /autogen.sh
parentd36679f72eeb96d974d7b012a68e94f55c268068 (diff)
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.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index f80676b7c..9869c156a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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