and it’s still not picked up right…
[alioth/cvs.git] / debian / rules
index b137778..b8e5e1c 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.24 2013/06/26 18:35:52 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
@@ -76,13 +78,16 @@ CLEANFILES:=                autom4te.cache debian/CVSTEMP debian/.*_stamp \
 debian/.configure_stamp:
        dh_testdir
        -rm -rf ${CLEANFILES}
+       cp /usr/share/gnulib/m4/mktime.m4 m4/
+       cp /usr/share/misc/config.guess /usr/share/misc/config.sub build-aux/
        dh_autoreconf
        mkdir debian/builddir debian/stagedir
        cd debian/builddir && \
            env ${CONFIGURE_ENV} sh ../../configure ${CONFIGURE_ARGS}
        @:>$@
 
-build build-indep build-arch: debian/.build_stamp
+build-indep:
+build build-arch: debian/.build_stamp
 
 debian/.build_stamp: debian/.configure_stamp
        dh_testdir