From 9552daa50e5f6908a6a80441d8c1cf5c0e01c5fc Mon Sep 17 00:00:00 2001 From: Bernhard Rosenkraenzer Date: Tue, 21 Aug 2012 00:04:25 +0200 Subject: 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 --- NativeCode.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NativeCode.mk b/NativeCode.mk index 1aab9012335..4aeff74165a 100644 --- a/NativeCode.mk +++ b/NativeCode.mk @@ -67,6 +67,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). -- cgit v1.2.3