diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index cc42d931e..51ab054e7 100755 --- a/debian/rules +++ b/debian/rules @@ -30,9 +30,21 @@ CONFIGUREARGS := --libdir=/usr/lib --libexecdir=/usr/lib \ # (most notably the Phion one) have problems connecting when pluto # sends these Cisco options. +# get the various DEB_BUILD/DEB_HOST variables +include /usr/share/dpkg/architecture.mk + +# use reduced keylength in testsuite for !linux and !x86 +ifneq ($(DEB_BUILD_ARCH_OS),linux) + export TESTS_REDUCED_KEYLENGTHS=true +endif +ifneq ($(DEB_BUILD_ARCH_CPU),i386) +ifneq ($(DEB_BUILD_ARCH_CPU),amd64) + export TESTS_REDUCED_KEYLENGTHS=true +endif +endif + # the padlock plugin only makes sense on i386 # 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 --enable-rdrand endif |