OSDN Git Service

android: libdrm_platform: add liblog shared dependency nougat-x86 android-x86-7.1-r4 android-x86-7.1-r5 android-x86-8.1-r2 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-8.1-r5
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 16 Mar 2019 19:54:15 +0000 (20:54 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 17 Mar 2019 12:09:32 +0000 (20:09 +0800)
Fixes the following building error:

FAILED: $(OUT)/obj/SHARED_LIBRARIES/libdrm_platform_intermediates/LINKED/libdrm_platform.so
...
external/libdrm/xf86drm.c:146: error: undefined reference to '__android_log_vprint'
clang.real: error: linker command failed with exit code 1 (use -v to see invocation)

Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Android.mk

index f2c78bc..f832b24 100644 (file)
@@ -61,6 +61,9 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := \
        $(LOCAL_PATH) \
        $(LOCAL_PATH)/include/drm
 
+LOCAL_SHARED_LIBRARIES := \
+       liblog
+
 LOCAL_C_INCLUDES := \
        $(LOCAL_PATH)/include/drm