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 9caac0f176
was
still necessary for OpenBSD.
Pick-to: 6.5 6.6
Change-Id: I63b988479db546dabffcfffd17661fdd376bf8c8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
f992402f15
commit
604eb6f4cd
@ -6,7 +6,7 @@
|
|||||||
function(qt_internal_get_relative_rpath_base_token out_var)
|
function(qt_internal_get_relative_rpath_base_token out_var)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(rpath_rel_base "@loader_path")
|
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")
|
set(rpath_rel_base "$ORIGIN")
|
||||||
else()
|
else()
|
||||||
set(rpath_rel_base "NO_KNOWN_RPATH_REL_BASE")
|
set(rpath_rel_base "NO_KNOWN_RPATH_REL_BASE")
|
||||||
|
Loading…
Reference in New Issue
Block a user