OSDN Git Service

android: set the HAVE_VISIBILITY define
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 1 Apr 2015 15:54:26 +0000 (16:54 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 29 Apr 2015 17:29:37 +0000 (17:29 +0000)
... in order to limit the exported symbols only to the required ones.
Both compilers used with Android (GCC and LLVM) support this, so set it
unconditionally.

Cc: Chih-Wei Huang <cwhuang@linux.org.tw>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Android.mk

index 7038c3c..90cdcb3 100644 (file)
@@ -39,6 +39,7 @@ LOCAL_C_INCLUDES := \
        $(LOCAL_PATH)/include/drm
 
 LOCAL_CFLAGS := \
+       -DHAVE_VISIBILITY=1 \
        -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
 
 include $(BUILD_SHARED_LIBRARY)