[Pkg-xen-changes] r31 - trunk/debian

Guido Trotter ultrotter at costa.debian.org
Mon Feb 20 14:03:52 UTC 2006


Author: ultrotter
Date: 2006-02-20 14:03:51 +0000 (Mon, 20 Feb 2006)
New Revision: 31

Modified:
   trunk/debian/rules
Log:
Add a couple of recommended CFLAGS, plus build with -O2 as recommended in policy 10.1


Modified: trunk/debian/rules
===================================================================
--- trunk/debian/rules	2006-02-20 13:35:36 UTC (rev 30)
+++ trunk/debian/rules	2006-02-20 14:03:51 UTC (rev 31)
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 CC		:= gcc
+CFLAGS		:= -Wall -g
 #DH_VERBOSE	:= -v
 
 DEB_VERSION	:= $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
@@ -8,8 +9,14 @@
 UP_VERSION	:= $(shell echo "$(DEB_VERSION)" | sed 's/-[^-]*$$//')
 DEB_BUILD_ARCH  := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
+endif
+
 export DH_VERBOSE
-export CC
+export CC CFLAGS
 
 include /usr/share/dpatch/dpatch.make
 




More information about the Pkg-xen-changes mailing list