From af1f02a85d2a4d27c8291dccf43d63887543caa4 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 14 Oct 2012 23:46:04 +0300 Subject: [PATCH] Handle cross-compilation Guesstimate that --with-yielding_select=yes. Change-Id: I44c91c41b5f46ee4e969065b8c5e7c0c01899286 --- openldap/makefile.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openldap/makefile.mk b/openldap/makefile.mk index e12587a59935..d1522942399d 100644 --- a/openldap/makefile.mk +++ b/openldap/makefile.mk @@ -37,6 +37,11 @@ PATCH_FILES=\ CONFIGURE_DIR= CONFIGURE_ACTION=.$/configure CONFIGURE_FLAGS=--disable-slapd --with-pic --with-tls=moznss --without-cyrus-sasl --disable-shared --enable-static + +.IF "$(CROSS_COMPILING)"=="YES" +CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --with-yielding_select=yes +.ENDIF + .IF "$(SYSTEM_NSS)" == "YES" CONFIGURE_FLAGS+=CPPFLAGS="$(NSS_CFLAGS)" CFLAGS="$(NSS_CFLAGS)" LDFLAGS="$(NSS_LIBS)" .ELSE @@ -44,6 +49,7 @@ CONFIGURE_FLAGS+=CPPFLAGS="-I $(SOLARVER)$/$(INPATH)$/inc$/mozilla$/nss -I $(SOL CONFIGURE_FLAGS+=CFLAGS="-I $(SOLARVER)$/$(INPATH)$/inc$/mozilla$/nss -I $(SOLARVER)$/$(INPATH)$/inc$/mozilla$/nspr" CONFIGURE_FLAGS+=LDFLAGS="-L$(SOLARVER)$/$(INPATH)$/lib" .ENDIF + BUILD_FLAGS+= -j$(EXTMAXPROCESS) BUILD_DIR=$(CONFIGURE_DIR) BUILD_ACTION=$(GNUMAKE)