[systemd-devel] [PATCH] build: use -ftrapv for development

Shawn Landden shawn at churchofgit.com
Sat Dec 14 09:27:44 PST 2013


We want to find these bugs if they exist.
---
 autogen.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index d0a2f3f..9ffd724 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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
-- 
1.8.5.1



More information about the systemd-devel mailing list