diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-05-24 02:29:34 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-05-24 02:29:34 +0300 |
commit | 0b9066d9c3e7517707bb45850d672da0c59aaf44 (patch) | |
tree | 7e662f6456e7e5d5c7f3dbd7cb5d2a464128288a /libxml2/makefile.mk | |
parent | bfed48d5b5b9f8c7f4b89835243948e6ed55fb11 (diff) |
Cross-compilation support and iOS in particular
Diffstat (limited to 'libxml2/makefile.mk')
-rwxr-xr-x | libxml2/makefile.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libxml2/makefile.mk b/libxml2/makefile.mk index f037648132db..60a2e54414af 100755 --- a/libxml2/makefile.mk +++ b/libxml2/makefile.mk @@ -98,13 +98,21 @@ xml2_LDFLAGS+=-L$(SYSBASE)$/usr$/lib CONFIGURE_DIR= CONFIGURE_ACTION=.$/configure -CONFIGURE_FLAGS=--enable-ipv6=no --without-python --without-zlib --enable-shared --disable-static --with-sax1=yes ADDCFLAGS="$(xml2_CFLAGS) $(EXTRA_CFLAGS)" LDFLAGS="$(xml2_LDFLAGS) $(EXTRA_LINKFLAGS)" +.IF "$(OS)"=="IOS" +CONFIGURE_FLAGS+=--disable-shared +.ELSE +CONFIGURE_FLAGS=--disable-static +.ENDIF +CONFIGURE_FLAGS+=--enable-ipv6=no --without-python --without-zlib --with-sax1=yes ADDCFLAGS="$(xml2_CFLAGS) $(EXTRA_CFLAGS)" LDFLAGS="$(xml2_LDFLAGS) $(EXTRA_LINKFLAGS)" BUILD_ACTION=$(GNUMAKE) BUILD_FLAGS+= -j$(EXTMAXPROCESS) BUILD_DIR=$(CONFIGURE_DIR) .IF "$(debug)"!="" CONFIGURE_FLAGS+=--with-mem-debug --with-run-debug .ENDIF +.IF "$(CROSS_COMPILING)"!="" +CONFIGURE_FLAGS+= --build="$(BUILD_PLATFORM)" --host="$(HOST_PLATFORM)" +.ENDIF .ENDIF @@ -115,6 +123,9 @@ EXTRPATH=URELIB OUT2LIB+=.libs$/libxml2.*.dylib OUT2BIN+=.libs$/xmllint OUT2BIN+=xml2-config +.ELIF "$(OS)"=="IOS" +OUT2LIB+=.libs$/libxml2.a +OUT2BIN+=xml2-config .ELIF "$(OS)"=="WNT" .IF "$(COM)"=="GCC" OUT2LIB+=.libs$/libxml2*.a |