Kaydet (Commit) cee6c4b1 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Use hidden visibility now for Android with icu built statically

Change-Id: I46b97d31f8aac046479d030c988413017c5b940a
üst ddf7e2c1
...@@ -61,3 +61,14 @@ ...@@ -61,3 +61,14 @@
#elif U_PLATFORM_IS_LINUX_BASED #elif U_PLATFORM_IS_LINUX_BASED
# define U_TIMEZONE __timezone # define U_TIMEZONE __timezone
#elif U_PLATFORM_USES_ONLY_WIN32_API #elif U_PLATFORM_USES_ONLY_WIN32_API
--- misc/icu/source/common/unicode/platform.h
+++ misc/build/icu/source/common/unicode/platform.h
@@ -641,7 +641,7 @@
#elif defined(U_STATIC_IMPLEMENTATION)
# define U_EXPORT
#elif defined(__GNUC__)
-# define U_EXPORT __attribute__((visibility("default")))
+# define U_EXPORT
#elif (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x550) \
|| (defined(__SUNPRO_C) && __SUNPRO_C >= 0x550)
# define U_EXPORT __global
...@@ -64,6 +64,8 @@ PATCH_FILES=\ ...@@ -64,6 +64,8 @@ PATCH_FILES=\
.IF "$(OS)"=="ANDROID" .IF "$(OS)"=="ANDROID"
PATCH_FILES+=\ PATCH_FILES+=\
icu4c-android.patch icu4c-android.patch
icu_CFLAGS+=-fvisibility=hidden
icu_CXXFLAGS+=-fvisibility=hidden
.ELSE .ELSE
PATCH_FILES+=\ PATCH_FILES+=\
icu4c-rpath.patch icu4c-rpath.patch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment