diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-05-24 02:38:21 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-05-24 02:38:21 +0300 |
commit | 31e8c4834f4b790b3a44696d8c5f14dc32e7d37b (patch) | |
tree | 47ffbc815fe19f3dd9a3a3f845e5bec1f710ed2d /libxslt/makefile.mk | |
parent | 0b9066d9c3e7517707bb45850d672da0c59aaf44 (diff) |
Cross-compilation support and iOS in particular
Diffstat (limited to 'libxslt/makefile.mk')
-rw-r--r-- | libxslt/makefile.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libxslt/makefile.mk b/libxslt/makefile.mk index 7d6bd1efb354..7c24f9bd22bc 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 |