diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-10-14 23:46:04 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-10-14 23:49:12 +0300 |
commit | af1f02a85d2a4d27c8291dccf43d63887543caa4 (patch) | |
tree | eb1bfad2ba6f3e16d7b00d16d129dfbddc9ebef2 | |
parent | Handle cross-compilation of nss (for desktop OSes) (diff) | |
download | core-af1f02a85d2a4d27c8291dccf43d63887543caa4.tar.gz core-af1f02a85d2a4d27c8291dccf43d63887543caa4.zip |
Handle cross-compilation
Guesstimate that --with-yielding_select=yes.
Change-Id: I44c91c41b5f46ee4e969065b8c5e7c0c01899286
-rw-r--r-- | openldap/makefile.mk | 6 |
1 files changed, 6 insertions, 0 deletions
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) |