From 1b648f3cecc4e6dd5522450f36317462a647c5d9 Mon Sep 17 00:00:00 2001 From: Yves-Alexis Perez Date: Fri, 29 Jun 2012 17:10:25 +0200 Subject: handle parallel build with dh other options already handled --- debian/rules | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 6cfdaaeea..a2c06836a 100755 --- a/debian/rules +++ b/debian/rules @@ -27,17 +27,9 @@ CONFIGUREARGS := --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ # (most notably the Phion one) have problems connecting when pluto # sends these Cisco options. -DEB_BUILD_ARCH_CPU ?=$(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) - -ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O2 -endif -ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) - NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) - MAKEFLAGS += -j$(NUMJOBS) -endif # the padlock plugin only makes sense on i386 # but it actually doesn't do much, so maybe we don't need it +DEB_BUILD_ARCH_CPU ?=$(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) ifeq ($(DEB_BUILD_ARCH_CPU),i386) CONFIGUREARGS += --enable-padlock endif @@ -118,4 +110,4 @@ override_dh_makeshlibs: dh_makeshlibs -n -X usr/lib/$(DEB_HOST_MULTIARCH)/ipsec/plugins %: - dh $@ + dh $@ --parallel -- cgit v1.2.3