chiark / gitweb /
build: use -ftrapv for development
authorShawn Landden <shawn@churchofgit.com>
Sat, 14 Dec 2013 17:27:44 +0000 (09:27 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 14 Dec 2013 22:33:10 +0000 (17:33 -0500)
We want to find these bugs if they exist.

autogen.sh

index d0a2f3f..9ffd724 100755 (executable)
@@ -54,10 +54,10 @@ args="$args \
 fi
 
 if [ "x$1" = "xc" ]; then
-        ./configure CFLAGS='-g -O0' --enable-kdbus $args
+        ./configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args
         make clean
 elif [ "x$1" = "xg" ]; then
-        ./configure CFLAGS='-g -Og' --enable-kdbus $args
+        ./configure CFLAGS='-g -Og -ftrapv' --enable-kdbus $args
         make clean
 else
         echo
@@ -65,6 +65,6 @@ else
         echo "Initialized build system. For a common configuration please run:"
         echo "----------------------------------------------------------------"
         echo
-        echo "./configure CFLAGS='-g -O0' --enable-kdbus $args"
+        echo "./configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args"
         echo
 fi