From 64a25bc57a7897b8feb1ab974a9c344b23dbc26d Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 3 Nov 2011 16:54:16 +0200 Subject: [PATCH] Pass --build and --host to xmlsec1 configury when cross-compiling --- libxmlsec/makefile.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libxmlsec/makefile.mk b/libxmlsec/makefile.mk index 0c83fbb8c4c4..d51d7aec5430 100644 --- a/libxmlsec/makefile.mk +++ b/libxmlsec/makefile.mk @@ -153,6 +153,10 @@ CONFIGURE_DIR= CONFIGURE_ACTION=.$/configure ADDCFLAGS="$(xmlsec_CFLAGS)" CPPFLAGS="$(xmlsec_CPPFLAGS)" CONFIGURE_FLAGS=--with-pic --disable-shared --disable-crypto-dl --with-libxslt=no --with-openssl=no --with-gnutls=no LIBXML2LIB="$(LIBXML2LIB)" +.IF "$(CROSS_COMPILING)"=="YES" +CONFIGURE_FLAGS+= --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) +.ENDIF + .IF "$(OS)" == "ANDROID" CONFIGURE_FLAGS+=--with-openssl=$(SOLARVER)/$(INPATH) .ENDIF