libcore/luni: Use -fno-strict-aliasing for now
This will be reverted once we have a proper fix.
Change-Id: Iab4663a5f96ff9770371f54697aa872260037ac1
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
diff --git a/NativeCode.mk b/NativeCode.mk
index b7c8b0e..ca6e79d 100644
--- a/NativeCode.mk
+++ b/NativeCode.mk
@@ -91,6 +91,10 @@
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).