Skip to content

Commit 7bf5949

Browse files
author
millucas
committed
Fix static linking
1 parent 9734952 commit 7bf5949

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [0.20.1] - UNRELEASED
2+
3+
### Fixed
4+
- Fixed static linking
5+
16
## [0.20.0] - 2017-09-14
27

38
### Added

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ fn link_static() {
318318

319319
// Determine the shared mode used by LLVM.
320320
let mode = run_llvm_config(&["--shared-mode"]).map(|m| m.trim().to_owned());
321-
let prefix = if mode.ok().map_or(false, |m| m == "static") { "static" } else { "" };
321+
let prefix = if mode.ok().map_or(false, |m| m == "static") { "static=" } else { "" };
322322

323323
// Specify required LLVM static libraries.
324324
println!("cargo:rustc-link-search=native={}", run_llvm_config(&["--libdir"]).unwrap().trim_right());

0 commit comments

Comments
 (0)