From 1aa454e3cd0b2951babb5dfe0f26a2fbdcc9bc2f Mon Sep 17 00:00:00 2001 From: Yves-Alexis Perez Date: Mon, 6 May 2013 12:43:24 +0200 Subject: Only enable RdRand on i386 and amd64 --- debian/changelog | 7 +++++++ debian/rules | 9 ++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index ccac11452..bd8c9c694 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +strongswan (5.0.4-2) UNRELEASED; urgency=low + + * debian/rules: + - only enable RdRand on i386 and amd64. + + -- Yves-Alexis Perez Mon, 06 May 2013 12:42:53 +0200 + strongswan (5.0.4-1) experimental; urgency=low * New upstream release. diff --git a/debian/rules b/debian/rules index c76816404..fcb4eac56 100755 --- a/debian/rules +++ b/debian/rules @@ -18,7 +18,6 @@ CONFIGUREARGS := --libdir=/usr/lib --libexecdir=/usr/lib \ --enable-test-vectors \ --enable-xauth-eap --enable-xauth-pam \ --enable-attr-sql \ - --enable-rdrand \ --disable-blowfish --disable-des # BSD-Young license #--with-user=strongswan --with-group=nogroup # --enable-kernel-pfkey --enable-kernel-klips \ @@ -29,10 +28,14 @@ CONFIGUREARGS := --libdir=/usr/lib --libexecdir=/usr/lib \ # sends these Cisco options. # the padlock plugin only makes sense on i386 -# but it actually doesn't do much, so maybe we don't need it +# RdRand only makes sense on i386 and amd64 DEB_BUILD_ARCH_CPU ?=$(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) ifeq ($(DEB_BUILD_ARCH_CPU),i386) - CONFIGUREARGS += --enable-padlock + CONFIGUREARGS += --enable-padlock --enable-rdrand +endif + +ifeq ($(DEB_BUILD_ARCH_CPU),amd64) + CONFIGUREARGS += --enable-rdrand endif ifeq ($(DEB_BUILD_ARCH_OS),linux) -- cgit v1.2.3