diff options
author | Emil Velikov | 2017-01-22 11:03:07 -0600 |
---|---|---|
committer | Emil Velikov | 2017-01-27 09:48:16 -0600 |
commit | fc05e89b6f8634e9f347040c0e654e640cca067c (patch) | |
tree | fced887352f9c9e9791ea6814e2e73a828ba384f | |
parent | 03d2e91d00cb78d49fe170fb19a29107951a8c96 (diff) | |
download | external-libdrm-fc05e89b6f8634e9f347040c0e654e640cca067c.tar.gz external-libdrm-fc05e89b6f8634e9f347040c0e654e640cca067c.tar.xz external-libdrm-fc05e89b6f8634e9f347040c0e654e640cca067c.zip |
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.mk | 1 | ||||
-rw-r--r-- | Android.mk | 6 |
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 @@ | |||
1 | LOCAL_CFLAGS += \ | 1 | LOCAL_CFLAGS += \ |
2 | -DHAVE_VISIBILITY=1 \ | ||
2 | -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 | 3 | -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 |
3 | 4 | ||
4 | # Quiet down the build system and remove any .h files from the sources | 5 | # Quiet down the build system and remove any .h files from the sources |
@@ -41,9 +41,6 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \ | |||
41 | LOCAL_C_INCLUDES := \ | 41 | LOCAL_C_INCLUDES := \ |
42 | $(LOCAL_PATH)/include/drm | 42 | $(LOCAL_PATH)/include/drm |
43 | 43 | ||
44 | LOCAL_CFLAGS := \ | ||
45 | -DHAVE_VISIBILITY=1 | ||
46 | |||
47 | include $(LIBDRM_COMMON_MK) | 44 | include $(LIBDRM_COMMON_MK) |
48 | include $(BUILD_STATIC_LIBRARY) | 45 | include $(BUILD_STATIC_LIBRARY) |
49 | 46 | ||
@@ -58,9 +55,6 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \ | |||
58 | LOCAL_C_INCLUDES := \ | 55 | LOCAL_C_INCLUDES := \ |
59 | $(LOCAL_PATH)/include/drm | 56 | $(LOCAL_PATH)/include/drm |
60 | 57 | ||
61 | LOCAL_CFLAGS := \ | ||
62 | -DHAVE_VISIBILITY=1 | ||
63 | |||
64 | include $(LIBDRM_COMMON_MK) | 58 | include $(LIBDRM_COMMON_MK) |
65 | include $(BUILD_SHARED_LIBRARY) | 59 | include $(BUILD_SHARED_LIBRARY) |
66 | 60 | ||