chiark / gitweb /
Revert "journalctl: remove unexpected behavior of journalctl -b"
[elogind.git] / autogen.sh
index f80676b..e6289b3 100755 (executable)
@@ -54,7 +54,13 @@ args="$args \
 fi
 
 if [ "x$1" = "xc" ]; then
-        ./configure CFLAGS='-g -Og' $args
+        ./configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args
+        make clean
+elif [ "x$1" = "xg" ]; then
+        ./configure CFLAGS='-g -Og -ftrapv' --enable-kdbus $args
+        make clean
+elif [ "x$1" = "xa" ]; then
+        ./configure CFLAGS='-g -O0 -Wsuggest-attribute=pure -Wsuggest-attribute=const -ftrapv' --enable-kdbus $args
         make clean
 else
         echo
@@ -62,6 +68,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 -ftrapv' --enable-kdbus $args"
         echo
 fi