EGL: Fix linking issue to add runpath for accessing /hal/lib path 97/255997/1
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 26 Mar 2021 08:56:55 +0000 (17:56 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 26 Mar 2021 08:56:55 +0000 (17:56 +0900)
On Tizen 6.5, the install path of hal backend is changed
from /usr/lib to /hal/lib. In order to fix this linking issue,
add the runpath option for accessing /hal/lib path.

Change-Id: I04d9872d795091c560ace11c28e19b17a9c58fa7
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
EGL/CMakeLists.txt

index 3ef3be43f16b2b2ca3e032aeb95331336c968c5d..1cebf8f630fea17e274d184d701741019783ad99 100644 (file)
@@ -49,6 +49,8 @@ set(LIBRARIES
     dl
 )
 
+set(CMAKE_INSTALL_RPATH "/hal/lib")
+
 if (PLATFORM_X11)
     set(SOURCES ${SOURCES}
         x11/yagl_dri2.c