[Libreoffice-commits] .: libxslt/makefile.mk

Tor Lillqvist tml at kemper.freedesktop.org
Mon May 23 16:38:36 PDT 2011


 libxslt/makefile.mk |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

New commits:
commit 5ad53a8ce6137b3fc8321f4fb3808a1f0aff5e4e
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue May 24 02:38:21 2011 +0300

    Cross-compilation support and iOS in particular

diff --git a/libxslt/makefile.mk b/libxslt/makefile.mk
index 7d6bd1e..7c24f9b 100644
--- a/libxslt/makefile.mk
+++ b/libxslt/makefile.mk
@@ -117,7 +117,15 @@ CPPFLAGS+:=$(ARCH_FLAGS) -xc99=none
 .ENDIF                  # "$(COMNAME)"=="sunpro5"
 CONFIGURE_DIR=
 CONFIGURE_ACTION=.$/configure
-CONFIGURE_FLAGS=--enable-ipv6=no --without-crypto --without-python --enable-static=no --with-sax1=yes
+.IF "$(OS)"=="IOS"
+CONFIGURE_FLAGS+=--disable-shared
+.ELSE
+CONFIGURE_FLAGS=--disable-static
+.ENDIF
+CONFIGURE_FLAGS+=--enable-ipv6=no --without-crypto --without-python --with-sax1=yes
+.IF "$(CROSS_COMPILING)"!=""
+CONFIGURE_FLAGS+= --build="$(BUILD_PLATFORM)" --host="$(HOST_PLATFORM)"
+.ENDIF
 BUILD_ACTION=chmod 777 xslt-config && $(GNUMAKE)
 BUILD_FLAGS+= -j$(EXTMAXPROCESS)
 BUILD_DIR=$(CONFIGURE_DIR)
@@ -130,6 +138,10 @@ OUT2LIB+=libxslt$/.libs$/libxslt.*.dylib
 OUT2LIB+=libexslt$/.libs$/libexslt.*.dylib
 OUT2BIN+=xsltproc$/.libs$/xsltproc
 OUT2BIN+=xslt-config
+.ELIF "$(OS)"=="IOS"
+OUT2LIB+=libxslt$/.libs$/libxslt.a
+OUT2LIB+=libexslt$/.libs$/libexslt.a
+OUT2BIN+=xslt-config
 .ELIF "$(OS)"=="WNT"
 .IF "$(COM)"=="GCC"
 OUT2LIB+=libxslt$/.libs$/*.a


More information about the Libreoffice-commits mailing list