summaryrefslogtreecommitdiff
path: root/hyphen
diff options
context:
space:
mode:
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