summaryrefslogtreecommitdiff
path: root/libutils
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2016-02-25 11:44:35 -0800
committerDimitry Ivanov <dimitry@google.com>2016-02-25 11:44:35 -0800
commit2c7960c8d971ce37058b948f9e5e4e5ee6782cea (patch)
tree614bb685a45006d1ba66d8d7bc32d672ac7a9bfb /libutils
parentb046e74beff221d96189c4142f42f18730565921 (diff)
Make libutils symbols protected
This change is a workaround for apps linking libutils statically and dynamically which causes them to crash for newer version of Android. Bug: http://b/27313399 Change-Id: I47ac4146041b6eeef03cb605ea436719d552ec8f
Diffstat (limited to 'libutils')
-rw-r--r--libutils/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/libutils/Android.mk b/libutils/Android.mk
index 8c4fd15b6..3584b6a21 100644
--- a/libutils/Android.mk
+++ b/libutils/Android.mk
@@ -72,7 +72,7 @@ LOCAL_SRC_FILES:= \
ifeq ($(TARGET_ARCH),mips)
LOCAL_CFLAGS += -DALIGN_DOUBLE
endif
-LOCAL_CFLAGS += -Werror
+LOCAL_CFLAGS += -Werror -fvisibility=protected
LOCAL_STATIC_LIBRARIES := \
libcutils \