From 0c572b1343d1e98574b7bc46169947f2dd5a257d Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Tue, 29 Jul 2025 16:20:49 -0700 Subject: [Mac] Consistently specify rpaths for plug-ins C++ plug-ins now consistently use the `plugin_rpath` or `ui_plugin_rpath` macros to ensure they have `SKIP_BUILD_RPATH` set when building on Mac (i.e., no `LC_RPATH` is added). Rust plug-ins have their build.rs updated to only specify `-Wl,-rpath` when building for Linux. It is not needed on macOS. On macOS we instead explicitly specify an `@rpath`-relative install name. This doesn't change any behavior, but avoids leaving an absolute path as the library's install name and is consistent with CMake's behavior for C++ plug-ins. --- plugins/workflow_objc/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/workflow_objc') diff --git a/plugins/workflow_objc/CMakeLists.txt b/plugins/workflow_objc/CMakeLists.txt index 61ba4962..a16a5519 100644 --- a/plugins/workflow_objc/CMakeLists.txt +++ b/plugins/workflow_objc/CMakeLists.txt @@ -28,6 +28,7 @@ set(PLUGIN_SOURCE add_library(workflow_objc SHARED ${PLUGIN_SOURCE}) target_link_libraries(workflow_objc binaryninjaapi) target_compile_features(workflow_objc PRIVATE cxx_std_20 c_std_99) +plugin_rpath(workflow_objc) # Library targets linking against the Binary Ninja API need to be compiled with # position-independent code on Linux. -- cgit v1.3.1