diff --git a/build/static.rs b/build/static.rs index 6bc2beaf9..e83517845 100644 --- a/build/static.rs +++ b/build/static.rs @@ -41,7 +41,7 @@ fn get_library_name(path: &Path) -> Option { /// Gets the LLVM static libraries required to link to `libclang`. fn get_llvm_libraries() -> Vec { - common::run_llvm_config(&["--libs"]) + common::run_llvm_config(&["--libs", "--link-static"]) .unwrap() .split_whitespace() .filter_map(|p| {