aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-08-21 00:04:25 +0200
committerAmit Pundir <amit.pundir@linaro.org>2013-07-25 04:45:56 +0530
commitb731d92cf218deb511b6924b7a1ddd0260dd32f3 (patch)
tree106ba783ec430ca610f926f5a47a0f79a63455c6
parent4a140e85b004842a512747f692002d369cd4aebd (diff)
downloadlibcore-linaro_android_4.3.tar.gz
libcore/luni: Use -fno-strict-aliasing for nowlinaro_android_4.3
This will be reverted once we have a proper fix. Change-Id: Iab4663a5f96ff9770371f54697aa872260037ac1 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-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).