summaryrefslogtreecommitdiff
path: root/hyphen
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-05-14 01:47:28 +0300
committerTor Lillqvist <tml@iki.fi>2011-05-14 01:47:28 +0300
commit4acf86448e93427822fb59b1fddf80709bc149c1 (patch)
tree47c06420555e3059c76e150911d3200961279f03 /hyphen
parentb0a85a11c3379951b9fee03a23cc729501c4fcd4 (diff)
Cross-compilation support and iOS in particular
Diffstat (limited to 'hyphen')
-rw-r--r--hyphen/makefile.mk11
1 files changed, 9 insertions, 2 deletions
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