summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2016-03-10 10:25:33 -0600
committerMark Salyzyn2016-03-10 15:49:38 -0600
commitbe1d3c21b57d3e67c6a9682f3b2f0838486a3ee8 (patch)
treef83e8dabebad833008a8618ebc40eef3d22d6c85 /liblog/Android.mk
parent76ffa683fc770ec75a66dbeae2c0ecaba905d97b (diff)
downloadplatform-system-core-be1d3c21b57d3e67c6a9682f3b2f0838486a3ee8.tar.gz
platform-system-core-be1d3c21b57d3e67c6a9682f3b2f0838486a3ee8.tar.xz
platform-system-core-be1d3c21b57d3e67c6a9682f3b2f0838486a3ee8.zip
liblog: audit declare LIBLOG_ABI_PUBLIC
- replace <sys/cdefs.h> with local "log_cdefs.h" which fortifies and expands definitions, adding LIBLOG_ABI_PUBLIC, LIBLOG_HIDDEN, LIBLOG_ABI_PRIVATE and LIBLOG_WEAK. - clearly tag each interface as LIBLOG_ABI_PUBLIC, LIBLOG_HIDDEN, LIBLOG_ABI_PRIVATE, LIBLOG_WEAK or static depending on scope - Add -fvisibility=hidden to ensure nothing else leaks - some code standard adjustments Bug: 27566046 Change-Id: Ic14033c4e6d833d973beb035ddc1c6134fb35a3f
Diffstat (limited to 'liblog/Android.mk')
-rw-r--r--liblog/Android.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/liblog/Android.mk b/liblog/Android.mk
index dd5b518e7..6d53a4af0 100644
--- a/liblog/Android.mk
+++ b/liblog/Android.mk
@@ -39,7 +39,7 @@ LOCAL_SRC_FILES := $(liblog_host_sources)
39LOCAL_SRC_FILES_darwin := event_tag_map.c 39LOCAL_SRC_FILES_darwin := event_tag_map.c
40LOCAL_SRC_FILES_linux := event_tag_map.c 40LOCAL_SRC_FILES_linux := event_tag_map.c
41LOCAL_SRC_FILES_windows := uio.c 41LOCAL_SRC_FILES_windows := uio.c
42LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1 -Werror $(liblog_cflags) 42LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1 -Werror -fvisibility=hidden $(liblog_cflags)
43LOCAL_MULTILIB := both 43LOCAL_MULTILIB := both
44LOCAL_MODULE_HOST_OS := darwin linux windows 44LOCAL_MODULE_HOST_OS := darwin linux windows
45include $(BUILD_HOST_STATIC_LIBRARY) 45include $(BUILD_HOST_STATIC_LIBRARY)
@@ -59,7 +59,7 @@ include $(BUILD_HOST_SHARED_LIBRARY)
59include $(CLEAR_VARS) 59include $(CLEAR_VARS)
60LOCAL_MODULE := liblog 60LOCAL_MODULE := liblog
61LOCAL_SRC_FILES := $(liblog_target_sources) 61LOCAL_SRC_FILES := $(liblog_target_sources)
62LOCAL_CFLAGS := -Werror $(liblog_cflags) 62LOCAL_CFLAGS := -Werror -fvisibility=hidden $(liblog_cflags)
63# AddressSanitizer runtime library depends on liblog. 63# AddressSanitizer runtime library depends on liblog.
64LOCAL_SANITIZE := never 64LOCAL_SANITIZE := never
65include $(BUILD_STATIC_LIBRARY) 65include $(BUILD_STATIC_LIBRARY)
@@ -67,7 +67,7 @@ include $(BUILD_STATIC_LIBRARY)
67include $(CLEAR_VARS) 67include $(CLEAR_VARS)
68LOCAL_MODULE := liblog 68LOCAL_MODULE := liblog
69LOCAL_WHOLE_STATIC_LIBRARIES := liblog 69LOCAL_WHOLE_STATIC_LIBRARIES := liblog
70LOCAL_CFLAGS := -Werror $(liblog_cflags) 70LOCAL_CFLAGS := -Werror -fvisibility=hidden $(liblog_cflags)
71 71
72# TODO: This is to work around b/24465209. Remove after root cause is fixed 72# TODO: This is to work around b/24465209. Remove after root cause is fixed
73LOCAL_LDFLAGS_arm := -Wl,--hash-style=both 73LOCAL_LDFLAGS_arm := -Wl,--hash-style=both