Commit 2b0f49ce authored by qinsoon's avatar qinsoon

add static link lib/frameworks (otherwise do not work on macos 10.12.6)

parent eadc6e27
......@@ -104,6 +104,16 @@ fn link_executable_internal(
cc.arg("-lm");
cc.arg("-lpthread");
cc.arg("-lz");
} else if cfg!(target_os = "macos") {
cc.arg("-liconv");
cc.arg("-framework");
cc.arg("Security");
cc.arg("-framework");
cc.arg("CoreFoundation");
cc.arg("-lz");
cc.arg("-lSystem");
cc.arg("-lc");
cc.arg("-lm");
}
// all the source code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment