diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-12-31 01:01:57 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-12-31 01:10:42 +0200 |
commit | d9584d9a6b017ee8b6f95a14fdec1223eb7dab6b (patch) | |
tree | e7075a6bdcee2803c58e5de33d0a10f36e8e7296 /redland/ExternalProject_raptor.mk | |
parent | Fix typo s/ANDRIOD/ANDROID/ (diff) | |
download | core-d9584d9a6b017ee8b6f95a14fdec1223eb7dab6b.tar.gz core-d9584d9a6b017ee8b6f95a14fdec1223eb7dab6b.zip |
Fix redland cross-compilation at least for Android
Fix typo: It's SYSTEM_LIBXML, not SYSTEM_LIBXML2.
The xml2-config from our patched bundled libxml2 needs LIBXML2LIB.
Need to find raptor-config and rasqal-config (for the HOST platform, that's
fine as they are shell scripts. not binaries) in PATH.
Change-Id: I58376d4ffbc9954c375b4e2b9bad3f68ed12e3bf
Diffstat (limited to 'redland/ExternalProject_raptor.mk')
-rw-r--r-- | redland/ExternalProject_raptor.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/redland/ExternalProject_raptor.mk b/redland/ExternalProject_raptor.mk index 69650c799531..1571821f2f2c 100644 --- a/redland/ExternalProject_raptor.mk +++ b/redland/ExternalProject_raptor.mk @@ -20,7 +20,7 @@ $(call gb_ExternalProject_get_state_target,raptor,build): cd $(EXTERNAL_WORKDIR) \ && CC="$(CC) -mthreads $(if $(filter YES,$(MINGW_SHARED_GCCLIB)),-shared-libgcc)" \ LDFLAGS="-Wl,--no-undefined -Wl,--enable-runtime-pseudo-reloc-v2 -Wl,--export-all-symbols $(subst ;, -L,$(ILIB))" \ - LIBXML2LIB="$(if $(filter YES,$(SYSTEM_LIBXML2)),$(LIBXML_LIBS),-lxml2)" \ + LIBXML2LIB="$(if $(filter YES,$(SYSTEM_LIBXML)),$(LIBXML_LIBS),-lxml2)" \ XSLTLIB="$(if $(filter YES,$(SYSTEM_LIBXSLT)),$(LIBXSLT_LIBS),-lxslt)" \ OBJDUMP="$(HOST_PLATFORM)-objdump" \ ./configure --disable-static --enable-shared --disable-gtk-doc --with-openssl-digests \ @@ -50,7 +50,9 @@ $(call gb_ExternalProject_get_state_target,raptor,build): $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO)\ $(if $(filter IOS ANDROID,$(OS)),--disable-shared,--disable-static) \ $(if $(filter NO,$(SYSTEM_LIBXSLT)),--with-xslt-config=$(OUTDIR)/bin/xslt-config) \ - $(if $(filter NO,$(SYSTEM_LIBXML2)),--with-xml2-config=$(OUTDIR)/bin/xml2-config) \ + $(if $(filter NO,$(SYSTEM_LIBXML)), \ + LIBXML2LIB=-lxml2 \ + --with-xml2-config=$(OUTDIR)/bin/xml2-config) \ && $(GNUMAKE) \ && touch $@ endif |