From 4acf86448e93427822fb59b1fddf80709bc149c1 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 14 May 2011 01:47:28 +0300 Subject: Cross-compilation support and iOS in particular --- hyphen/makefile.mk | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'hyphen') diff --git a/hyphen/makefile.mk b/hyphen/makefile.mk index 94c1592df21e..529020f94e67 100644 --- a/hyphen/makefile.mk +++ b/hyphen/makefile.mk @@ -51,7 +51,11 @@ CONFIGURE_DIR=$(BUILD_DIR) #relative to CONFIGURE_DIR # still needed also in system-hyphen case as it creates the makefile CONFIGURE_ACTION=configure -CONFIGURE_FLAGS= --disable-shared --with-pic +CONFIGURE_FLAGS=--disable-shared + +.IF "$(OS)"!="IOS" +CONFIGURE_FLAGS+= --with-pic +.ENDIF .IF "$(COM)"=="C52" && "$(CPU)"=="U" LCL_CONFIGURE_CFLAGS+=-m64 @@ -82,7 +86,6 @@ OUT2INC += hyphen.h .ENDIF # "$(GUI)"=="UNX" - .IF "$(GUI)"=="WNT" .IF "$(COM)"=="GCC" CONFIGURE_ACTION=configure @@ -101,6 +104,10 @@ BUILD_ACTION=dmake OUT2INC += hyphen.h .ENDIF # "$(GUI)"=="OS2" +.IF "$(CROSS_COMPILING)"!="" +CONFIGURE_FLAGS+= --build="$(BUILD_PLATFORM)" --host="$(HOST_PLATFORM)" +.ENDIF + # --- Targets ------------------------------------------------------ .INCLUDE : set_ext.mk -- cgit