diff --git a/crates/voicevox_core_c_api/build.rs b/crates/voicevox_core_c_api/build.rs index d97ecd03b..6bce844c0 100644 --- a/crates/voicevox_core_c_api/build.rs +++ b/crates/voicevox_core_c_api/build.rs @@ -6,7 +6,10 @@ fn main() { println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN"); #[cfg(target_os = "macos")] - println!("cargo:rustc-link-arg=-Wl,-install_name,@rpath/libcore.dylib"); + { + println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path/"); + println!("cargo:rustc-link-arg=-Wl,-install_name,@rpath/libcore.dylib"); + } } #[cfg(feature = "generate-c-header")]