handle CFLAGS delta for the backport
authormirabilos <t.glaser@tarent.de>
Sun, 3 Dec 2017 00:23:17 +0000 (01:23 +0100)
committermirabilos <t.glaser@tarent.de>
Sun, 3 Dec 2017 00:23:17 +0000 (01:23 +0100)
debian/rules

index 2b82adb..a84920e 100755 (executable)
@@ -109,10 +109,14 @@ endif
 endif
 
 EXTRA_CFLAGS+=         -Wall -Wformat
-EXTRA_CFLAGS+=         -fno-omit-frame-pointer -fwrapv -fno-strict-aliasing
-# adjust when backporting
-EXTRA_CFLAGS+=         -Wextra -Wno-pointer-sign -Wno-unused-parameter \
-                       -Wno-old-style-definition -Wno-strict-prototypes \
+EXTRA_CFLAGS+=         -fno-omit-frame-pointer -fno-strict-aliasing
+ifeq (,$(findstring sarge,${DEB_BUILD_OPTIONS}))
+EXTRA_CFLAGS+=         -fwrapv
+EXTRA_CFLAGS+=         -Wextra -Wno-pointer-sign -Wno-old-style-definition
+else
+EXTRA_CFLAGS+=         -W
+endif
+EXTRA_CFLAGS+=         -Wno-unused-parameter -Wno-strict-prototypes \
                        -Wno-cast-qual \
                        -Wno-missing-prototypes -Wno-missing-declarations
 EXTRA_LDFLAGS=         -Wl,--as-needed