aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NativeCode.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/NativeCode.mk b/NativeCode.mk
index b7c8b0ef8df..ca6e79d80d6 100644
--- a/NativeCode.mk
+++ b/NativeCode.mk
@@ -91,6 +91,10 @@ core_c_includes := $(sort libcore/include $(LOCAL_C_INCLUDES) $(JNI_H_INCLUDE))
core_shared_libraries := $(sort $(LOCAL_SHARED_LIBRARIES))
core_static_libraries := $(sort $(LOCAL_STATIC_LIBRARIES))
+core_cflags := -fvisibility=hidden -fno-strict-aliasing
+core_cflags += '-DGCC_HIDDEN=__attribute__((visibility("hidden")))'
+core_cppflags := -fvisibility-inlines-hidden -fno-strict-aliasing
+
#
# Build for the target (device).