summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2010-06-29 00:01:07 -0700
committerDoug Kwan <dougkwan@google.com>2010-06-29 00:01:07 -0700
commita94adf74b8a91ff002b9cade1736e5c4a50d52fb (patch)
tree4396eac3f7453a030e5f21e3b7a93b70e2a85051
parent7f4d5bd8c03935e2c0cd412e561b8fc5a6a880ae (diff)
downloadandroid_external_v8-a94adf74b8a91ff002b9cade1736e5c4a50d52fb.tar.gz
android_external_v8-a94adf74b8a91ff002b9cade1736e5c4a50d52fb.tar.bz2
android_external_v8-a94adf74b8a91ff002b9cade1736e5c4a50d52fb.zip
Set default symbol visibility of libv8.a to hidden.
Change-Id: I3862f4ebccfcb3e66f4f6187ae95f05679161c8c
-rw-r--r--Android.libv8.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/Android.libv8.mk b/Android.libv8.mk
index 01560ca7..192a4775 100644
--- a/Android.libv8.mk
+++ b/Android.libv8.mk
@@ -58,13 +58,16 @@ LOCAL_SRC_FILES += \
src/snapshot-empty.cc
endif
+# The -fvisibility=hidden option below prevents exporting of symbols from
+# libv8.a in libwebcore.so. That reduces size of libwebcore.so by 500k.
LOCAL_CFLAGS += \
-Wno-endif-labels \
-Wno-import \
-Wno-format \
-fno-exceptions \
-DENABLE_DEBUGGER_SUPPORT \
- -DV8_NATIVE_REGEXP
+ -DV8_NATIVE_REGEXP \
+ -fvisibility=hidden
ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -DARM -DV8_TARGET_ARCH_ARM