summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2017-01-22 17:03:07 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2017-01-27 15:48:16 +0000
commitfc05e89b6f8634e9f347040c0e654e640cca067c (patch)
treefced887352f9c9e9791ea6814e2e73a828ba384f
parent03d2e91d00cb78d49fe170fb19a29107951a8c96 (diff)
android: add HAVE_VISIBILITY to Android.common.mk
Currently only libdrm.so properly annotates its internal/private symbols. By setting the macro every binary produced will be in the same boat. This should give is smaller and more secure files Cc: Chih-Wei Huang <cwhuang@android-x86.org> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org>
-rw-r--r--Android.common.mk1
-rw-r--r--Android.mk6
2 files changed, 1 insertions, 6 deletions
diff --git a/Android.common.mk b/Android.common.mk
index c6ab8f50..ffe92198 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -1,4 +1,5 @@
LOCAL_CFLAGS += \
+ -DHAVE_VISIBILITY=1 \
-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
# Quiet down the build system and remove any .h files from the sources
diff --git a/Android.mk b/Android.mk
index ec6d5322..5209059e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -41,9 +41,6 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include/drm
-LOCAL_CFLAGS := \
- -DHAVE_VISIBILITY=1
-
include $(LIBDRM_COMMON_MK)
include $(BUILD_STATIC_LIBRARY)
@@ -58,9 +55,6 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include/drm
-LOCAL_CFLAGS := \
- -DHAVE_VISIBILITY=1
-
include $(LIBDRM_COMMON_MK)
include $(BUILD_SHARED_LIBRARY)