summaryrefslogtreecommitdiffstats
path: root/cmake/QtRpathHelpers.cmake
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-06-06 09:48:39 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-06-07 17:09:52 -0700
commit604eb6f4cdf61bf02a2e6e2ec2bbb58d0567364c (patch)
tree2a4e78ad0fe251730364666d413e7f479982a61e /cmake/QtRpathHelpers.cmake
parentf992402f15fd117bb5ccf9a484bf31fd4f4967e2 (diff)
CMake: apply OpenBSD patch to enable $ORIGIN
Found at https://github.com/openbsd/ports/blob/master/x11/qt6/qtbase/patches/patch-cmake_QtRpathHelpers_cmake There are a lot more patches there whose purpose I can't tell. This is the only CMake one that I do understand. They should upstream those changes to us with an explanation, instead of carrying patches... Found while researching if 9caac0f176040b4da48d3ea289683b0b082cf729 was still necessary for OpenBSD. Pick-to: 6.5 6.6 Change-Id: I63b988479db546dabffcfffd17661fdd376bf8c8 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtRpathHelpers.cmake')
-rw-r--r--cmake/QtRpathHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtRpathHelpers.cmake b/cmake/QtRpathHelpers.cmake
index 2150b95e73..7228ffbbaa 100644
--- a/cmake/QtRpathHelpers.cmake
+++ b/cmake/QtRpathHelpers.cmake
@@ -6,7 +6,7 @@
function(qt_internal_get_relative_rpath_base_token out_var)
if(APPLE)
set(rpath_rel_base "@loader_path")
- elseif(LINUX OR SOLARIS OR FREEBSD OR HURD)
+ elseif(LINUX OR SOLARIS OR FREEBSD OR HURD OR OPENBSD)
set(rpath_rel_base "$ORIGIN")
else()
set(rpath_rel_base "NO_KNOWN_RPATH_REL_BASE")