r12327 - packages/trunk/netrek-client-cow/debian
Peter Pentchev
roam-guest at alioth.debian.org
Wed May 11 11:02:01 UTC 2011
Author: roam-guest
Date: 2011-05-11 11:01:52 +0000 (Wed, 11 May 2011)
New Revision: 12327
Modified:
packages/trunk/netrek-client-cow/debian/changelog
packages/trunk/netrek-client-cow/debian/rules
Log:
Build with -Werror if "werror" is in DEB_BUILD_OPTIONS.
Modified: packages/trunk/netrek-client-cow/debian/changelog
===================================================================
--- packages/trunk/netrek-client-cow/debian/changelog 2011-05-11 11:01:37 UTC (rev 12326)
+++ packages/trunk/netrek-client-cow/debian/changelog 2011-05-11 11:01:52 UTC (rev 12327)
@@ -31,6 +31,7 @@
* Pass --as-needed to the linker to avoid unneeded dependencies.
* Convert the copyright file to the latest DEP 5 candidate format
and add my copyright notice.
+ * Build with -Werror if the "werror" build option is specified.
[ Evgeni Golov ]
* Fix some typos in the Description.
Modified: packages/trunk/netrek-client-cow/debian/rules
===================================================================
--- packages/trunk/netrek-client-cow/debian/rules 2011-05-11 11:01:37 UTC (rev 12326)
+++ packages/trunk/netrek-client-cow/debian/rules 2011-05-11 11:01:52 UTC (rev 12327)
@@ -8,9 +8,13 @@
CPPFLAGS:= $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS:= $(shell dpkg-buildflags --get LDFLAGS)
+ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
+EXTRACFLAGS+= -Werror
+endif
+
LDFLAGS+= -Wl,-z,defs -Wl,--as-needed
-export CPPFLAGS CFLAGS LDFLAGS
+export CPPFLAGS CFLAGS EXTRACFLAGS LDFLAGS
override_dh_auto_configure:
dh_auto_configure -- \
More information about the Pkg-games-commits
mailing list