diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-03-21 11:23:44 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-03-21 11:23:44 -0700 |
| commit | f34c0e6ebd1f8a03a864b58fb6c6f8ebdffd80d6 (patch) | |
| tree | 70ede7ee991c89225e520703dd34e42badece3c9 /src/libstd | |
| parent | 7c66a89849b2d0025121a0898c4ab298da8814bf (diff) | |
| download | rust-f34c0e6ebd1f8a03a864b58fb6c6f8ebdffd80d6.tar.gz rust-f34c0e6ebd1f8a03a864b58fb6c6f8ebdffd80d6.zip | |
std: Link to gcc_s on NetBSD
Currently the nightlies we're producing fail when linking some C code into a
Rust application with the error message:
libgcc_s.so.1: error adding symbols: DSO missing from command line
By linking `gcc_s` instead of `gcc` this error goes away. I haven't tested this
on NetBSD itself, but should help get the Linux cross-compile image moreso up
and working!
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/build.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/build.rs b/src/libstd/build.rs index 4a835e9f503..c32bca82bd5 100644 --- a/src/libstd/build.rs +++ b/src/libstd/build.rs @@ -50,7 +50,9 @@ fn main() { if target.contains("rumprun") { println!("cargo:rustc-link-lib=unwind"); - } else if target.contains("netbsd") || target.contains("openbsd") { + } else if target.contains("netbsd") { + println!("cargo:rustc-link-lib=gcc_s"); + } else if target.contains("openbsd") { println!("cargo:rustc-link-lib=gcc"); } else if target.contains("bitrig") { println!("cargo:rustc-link-lib=c++abi"); |
