summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-10 20:20:09 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-10 20:20:09 +0800
commit0b83ae82b72bf69310546f7f7fada9cb1d072564 (patch)
treef6b94b791a668a8a8ddd758394747eb3bc57197a /indra
parent15181f40926e59465f50291f5b7b9323fe383749 (diff)
Automatic dullahan_host runpath removal on Fedora
Diffstat (limited to 'indra')
-rw-r--r--indra/cmake/CEFPlugin.cmake11
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/cmake/CEFPlugin.cmake b/indra/cmake/CEFPlugin.cmake
index 6c52963a51..655d924160 100644
--- a/indra/cmake/CEFPlugin.cmake
+++ b/indra/cmake/CEFPlugin.cmake
@@ -19,8 +19,17 @@ if (CMAKE_OSX_ARCHITECTURES MATCHES arm64)
RESULT_VARIABLE dullahan_installed
)
endif (${PREBUILD_TRACKING_DIR}/sentinel_installed IS_NEWER_THAN ${PREBUILD_TRACKING_DIR}/dullahan_installed OR NOT ${dullahan_installed} EQUAL 0)
-else ()
+else (CMAKE_OSX_ARCHITECTURES MATCHES arm64)
use_prebuilt_binary(dullahan)
+ if (LINUX)
+ cmake_host_system_information(RESULT LINUX_DISTRO QUERY DISTRIB_ID)
+ if (${LINUX_DISTRO} MATCHES fedora)
+ execute_process(
+ COMMAND patchelf --remove-rpath bin/release/dullahan_host
+ WORKING_DIRECTORY ${AUTOBUILD_INSTALL_DIR}
+ )
+ endif (${LINUX_DISTRO} MATCHES fedora)
+ endif (LINUX)
endif (CMAKE_OSX_ARCHITECTURES MATCHES arm64)
target_include_directories( ll::cef SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/cef)