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>main
parent
03d2e91d00
commit
fc05e89b6f
|
@ -1,4 +1,5 @@
|
||||||
LOCAL_CFLAGS += \
|
LOCAL_CFLAGS += \
|
||||||
|
-DHAVE_VISIBILITY=1 \
|
||||||
-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
|
-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
|
||||||
|
|
||||||
# Quiet down the build system and remove any .h files from the sources
|
# Quiet down the build system and remove any .h files from the sources
|
||||||
|
|
|
@ -41,9 +41,6 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \
|
||||||
LOCAL_C_INCLUDES := \
|
LOCAL_C_INCLUDES := \
|
||||||
$(LOCAL_PATH)/include/drm
|
$(LOCAL_PATH)/include/drm
|
||||||
|
|
||||||
LOCAL_CFLAGS := \
|
|
||||||
-DHAVE_VISIBILITY=1
|
|
||||||
|
|
||||||
include $(LIBDRM_COMMON_MK)
|
include $(LIBDRM_COMMON_MK)
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
|
@ -58,9 +55,6 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \
|
||||||
LOCAL_C_INCLUDES := \
|
LOCAL_C_INCLUDES := \
|
||||||
$(LOCAL_PATH)/include/drm
|
$(LOCAL_PATH)/include/drm
|
||||||
|
|
||||||
LOCAL_CFLAGS := \
|
|
||||||
-DHAVE_VISIBILITY=1
|
|
||||||
|
|
||||||
include $(LIBDRM_COMMON_MK)
|
include $(LIBDRM_COMMON_MK)
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue