summaryrefslogtreecommitdiff
path: root/icu
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-09-14 14:28:32 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-09-14 14:37:02 +0300
commit085446cf8501f2b820628b106fdb5dd4c375d13f (patch)
tree2cb2aa6e6f97ec6623f0cc5794659f5059e2abbc /icu
parent04ddb79f5016c09503edcd50de35d40a2789c854 (diff)
Adapt for DISABLE_DYNLOADING possibility also for Android
Change-Id: I0d6f363ad4170bea804e53247f36a7954118a23d
Diffstat (limited to 'icu')
-rw-r--r--icu/makefile.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/icu/makefile.mk b/icu/makefile.mk
index df2d20bb25c2..95a91a0391c8 100644
--- a/icu/makefile.mk
+++ b/icu/makefile.mk
@@ -145,7 +145,7 @@ LDFLAGSADD += -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-
CONFIGURE_DIR=source
-.IF "$(OS)"=="IOS"
+.IF "$(DISABLE_DYNLOADING)" == "TRUE"
STATIC_OR_SHARED=--enable-static --disable-shared
.ELSE
STATIC_OR_SHARED=--disable-static --enable-shared
@@ -157,7 +157,10 @@ BUILD_AND_HOST=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --with-cross-bu
.ENDIF
.IF "$(OS)"=="ANDROID"
+.IF "$(DISABLE_DYNLOADING)" != "TRUE"
LIBRARY_SUFFIX= --with-library-suffix=lo
+.ENDIF
+# Just so that some executables that nobody will run anyway get built...
icu_LDFLAGS+=-lgnustl_shared -lm
.ENDIF
@@ -180,14 +183,14 @@ CONFIGURE_FLAGS=
BUILD_DIR=$(CONFIGURE_DIR)
BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE) -j$(EXTMAXPROCESS)
-.IF "$(OS)"=="IOS"
+.IF "$(DISABLE_DYNLOADING)" == "TRUE"
OUT2LIB= \
$(BUILD_DIR)$/lib$/libicudata.a \
$(BUILD_DIR)$/lib$/libicuuc.a \
$(BUILD_DIR)$/lib$/libicui18n.a \
$(BUILD_DIR)$/lib$/libicule.a \
$(BUILD_DIR)$/lib$/libicutu.a
-.ELIF "$(OS)"=="ANDROID"
+.ELIF "$(OS)"=="ANDROID" # The so far normal, non-DISABLE_DYNLOADING case for Android
BUILD_ACTION+= && cat uconfig.h.prepend common/unicode/uconfig.h >common/unicode/uconfig.h.new && mv common/unicode/uconfig.h.new common/unicode/uconfig.h
OUT2LIB= \
$(BUILD_DIR)$/lib$/libicudatalo.so \