From: Courtney Goeltzenleuchter Date: Wed, 10 Apr 2019 21:25:16 +0000 (-0600) Subject: Always dynamically lookup egl functions X-Git-Tag: upstream/1.3.5~1253^2^2~4^2^2~1^2^2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91e0de14cb4f07bdf52d550f68858113b87b1d0f;p=platform%2Fupstream%2FVK-GL-CTS.git Always dynamically lookup egl functions Android's latest NDK includes support for EGL 1.5 functions. However, only for API level 29. But due to unified headers folks building for older API levels will also see the new functions but won't be able to link. Making the egl functions dynamic avoids build time issues. Change-Id: I718e28c7422faf3c7b964ca70b86a1711a08ae54 Affects: EGL Bug: 1873 (cherry picked from commit 9af8b5c1ad98342a634b79a1f9c1213632248c64) --- diff --git a/targets/android/android.cmake b/targets/android/android.cmake index 44e97c6..c2f1f26 100644 --- a/targets/android/android.cmake +++ b/targets/android/android.cmake @@ -48,7 +48,8 @@ set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY}) if (IS_DIRECTORY ${ANGLE_LIBS}) find_library(EGL_LIBRARY NAMES EGL_angle PATHS ${ANGLE_LIBS} NO_DEFAULT_PATH) else() - find_library(EGL_LIBRARY EGL PATHS /usr/lib) + # Disable static linking by clearing EGL_LIBRARY + set(EGL_LIBRARY ) endif() set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})