From 604eb6f4cdf61bf02a2e6e2ec2bbb58d0567364c Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 6 Jun 2023 09:48:39 -0700 Subject: [PATCH] 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 --- cmake/QtRpathHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")