]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
autogen: use -O0 for "autogen.sh c" after all
authorLennart Poettering <lennart@poettering.net>
Wed, 30 Oct 2013 01:04:17 +0000 (02:04 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Oct 2013 01:08:57 +0000 (02:08 +0100)
-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.

autogen.sh

index f80676b7c160621ea258494102e739d2ba50df94..9869c156ae80f668a1edce627e4a6b5cd2930f63 100755 (executable)
@@ -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