diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-05-24 03:06:30 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-05-24 03:06:30 +0300 |
commit | 8e872440fdf116e903baf92c80b88154566688c8 (patch) | |
tree | 6942c882fce781c7d77e50701180ea6cf6e4f6eb /curl | |
parent | 5814cca89b59eec0254c7487bb38ba6c3a3e305c (diff) |
Cross-compilation support and iOS in particular
Diffstat (limited to 'curl')
-rw-r--r-- | curl/makefile.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/curl/makefile.mk b/curl/makefile.mk index 7588a4859b2a..6be9def7754f 100644 --- a/curl/makefile.mk +++ b/curl/makefile.mk @@ -79,13 +79,26 @@ curl_LDFLAGS+:=$(LINKFLAGS) $(LINKFLAGSRUNPATH_OOO) CONFIGURE_DIR=.$/ #relative to CONFIGURE_DIR CONFIGURE_ACTION=.$/configure -CONFIGURE_FLAGS= --without-ssl --without-libidn --enable-ftp --enable-ipv6 --enable-http --disable-gopher --disable-file --disable-ldap --disable-telnet --disable-dict --disable-static CPPFLAGS="$(curl_CFLAGS)" LDFLAGS="$(curl_LDFLAGS)" +.IF "$(OS)"=="IOS" +CONFIGURE_FLAGS=--disable-shared +.ELSE +CONFIGURE_FLAGS=--disable-static +.ENDIF +CONFIGURE_FLAGS+= --without-ssl --without-libidn --enable-ftp --enable-ipv6 --enable-http --disable-gopher --disable-file --disable-ldap --disable-telnet --disable-dict CPPFLAGS="$(curl_CFLAGS)" LDFLAGS="$(curl_LDFLAGS)" + +.IF "$(CROSS_COMPILING)"!="" +CONFIGURE_FLAGS+= --build="$(BUILD_PLATFORM)" --host="$(HOST_PLATFORM)" +.ENDIF BUILD_DIR=$(CONFIGURE_DIR)$/lib BUILD_ACTION=$(GNUMAKE) BUILD_FLAGS+= -j$(EXTMAXPROCESS) +.IF "$(OS)"=="IOS" +OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl.a +.ELSE OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl$(DLLPOST).4 +.ENDIF .ENDIF # "$(GUI)"=="UNX" |