also add -fwrapv to CFLAGS (addresses #698908)
[alioth/cvs.git] / debian / rules
index b137778..49cbde5 100755 (executable)
@@ -1,9 +1,11 @@
 #!/usr/bin/make -f
-# $MirOS: contrib/hosted/tg/deb/cvs/debian/rules,v 1.21 2013/06/26 17:53:16 tg Exp $
+# $MirOS: contrib/hosted/tg/deb/cvs/debian/rules,v 1.22 2013/06/26 17:54:04 tg Exp $
 
 CC?=                   gcc
 CONFIGURE_ENV:=                CC='${CC}'
 EXTRA_CFLAGS=          -Wall -fno-strict-aliasing -Wformat
+# addresses part of #698908
+EXTRA_CFLAGS+=         -fwrapv
 # for now. uses are mostly checked.
 EXTRA_CFLAGS+=         -Wno-unused-result
 EXTRA_CPPFLAGS=                -D_GNU_SOURCE -DUSE_LIBBSD