Skip to content

Commit 07e9220

Browse files
committed
Merge branch 'master' of github.com:alexcrichton/backtrace-rs
2 parents 56ab1b0 + c364d98 commit 07e9220

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

backtrace-sys/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ libc = "0.2"
1616

1717
[build-dependencies]
1818
cc = "1.0"
19-
pkg-config = "0.3"

backtrace-sys/build.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
extern crate pkg_config;
21
extern crate cc;
32

43
use std::env;
@@ -26,7 +25,6 @@ fn main() {
2625
.include(&out_dir)
2726
.warnings(false)
2827
.file("src/libbacktrace/alloc.c")
29-
.file("src/libbacktrace/backtrace.c")
3028
.file("src/libbacktrace/dwarf.c")
3129
.file("src/libbacktrace/fileline.c")
3230
.file("src/libbacktrace/posix.c")
@@ -49,20 +47,14 @@ fn main() {
4947
}
5048
}
5149

52-
if let Ok(unwind) = pkg_config::Config::new().probe("libunwind") {
53-
for path in unwind.include_paths {
54-
build.include(path);
55-
}
56-
}
57-
5850
File::create(out_dir.join("backtrace-supported.h")).unwrap();
5951
build.define("BACKTRACE_SUPPORTED", "1");
6052
build.define("BACKTRACE_USES_MALLOC", "1");
6153
build.define("BACKTRACE_SUPPORTS_THREADS", "0");
6254
build.define("BACKTRACE_SUPPORTS_DATA", "0");
6355

6456
File::create(out_dir.join("config.h")).unwrap();
65-
if !target.contains("apple-ios") {
57+
if !target.contains("apple-ios") && !target.contains("solaris") {
6658
build.define("HAVE_DL_ITERATE_PHDR", "1");
6759
}
6860
build.define("_GNU_SOURCE", "1");

0 commit comments

Comments
 (0)