chiark / gitweb /
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 f80676b..9869c15 100755 (executable)
@@ -54,6 +54,9 @@ args="$args \
 fi
 
 if [ "x$1" = "xc" ]; then
 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
         ./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 "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
         echo
 fi