1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/freerdp2/0009-switch-to-absolute-rpath.patch

20 lines
826 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 67f34372a..c1c280c99 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -992,13 +992,10 @@ else (APPLE)
if (NOT FREEBSD)
if (NOT BUILTIN_CHANNELS)
if (NOT DEFINED WITH_PLUGIN_RPATH_ONLY)
- set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}:\$ORIGIN/..:\$ORIGIN/../${FREERDP_PLUGIN_PATH}")
- else()
- # we need to supply this run path, even if not using RPATH in general
- set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${FREERDP_PLUGIN_PATH}")
+ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}/..:${CMAKE_INSTALL_PREFIX}/${FREERDP_PLUGIN_PATH}")
endif()
else()
- set(CMAKE_INSTALL_RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}:\$ORIGIN/..")
+ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}/..")
endif()
endif()
endif(APPLE)