fixed build on non-i386 architectures

This commit is contained in:
Martin Willi
2009-02-17 09:34:52 +00:00
parent b08e64a912
commit bd29dab446
+9 -4
View File
@@ -5,6 +5,11 @@
CC = gcc
CFLAGS = -Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing -g
INSTALL_PROGRAM = install
CONFIGURE_ARGS = \
--disable-fips-prf --enable-openssl --enable-nm --enable-ldap \
--enable-eap-gtc --enable-eap-md5 --enable-agent --enable-curl \
--enable-padlock --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib \
--with-ipsecdir=/usr/lib/strongswan
ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O2
@@ -16,13 +21,13 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
ifeq ($(DEB_BUILD_ARCH_CPU),i386)
CONFIGURE_ARGS += --enable-padlock
endif
build:
dh_testdir
./configure --disable-fips-prf --enable-openssl --enable-nm --enable-ldap \
--enable-eap-gtc --enable-eap-md5 --enable-agent --enable-curl \
--enable-padlock --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib \
--with-ipsecdir=/usr/lib/strongswan
./configure $(CONFIGURE_ARGS)
$(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)"
touch build