From 3f5549f7d9f7a10bb70042450c3b08e32d016b14 Mon Sep 17 00:00:00 2001 From: Edgar Date: Mon, 27 Nov 2023 12:49:45 +0100 Subject: [PATCH] fix macos --- src/ffi.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ffi.rs b/src/ffi.rs index 1979b0385..7ffba29ea 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -160,9 +160,11 @@ pub fn object_to_shared_lib(object: &[u8], output_filename: &Path) -> Result<(), "-dynamic", "-dylib", "-L/usr/local/lib", + "-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib", &file.display().to_string(), "-o", &output_filename.display().to_string(), + "-lSystem", ] } #[cfg(target_os = "linux")]