File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -16,4 +16,3 @@ libc = "0.2"
16
16
17
17
[build-dependencies ]
18
18
cc = " 1.0"
19
- pkg-config = " 0.3"
Original file line number Diff line number Diff line change 1
- extern crate pkg_config;
2
1
extern crate cc;
3
2
4
3
use std:: env;
@@ -26,7 +25,6 @@ fn main() {
26
25
. include ( & out_dir)
27
26
. warnings ( false )
28
27
. file ( "src/libbacktrace/alloc.c" )
29
- . file ( "src/libbacktrace/backtrace.c" )
30
28
. file ( "src/libbacktrace/dwarf.c" )
31
29
. file ( "src/libbacktrace/fileline.c" )
32
30
. file ( "src/libbacktrace/posix.c" )
@@ -49,20 +47,14 @@ fn main() {
49
47
}
50
48
}
51
49
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
-
58
50
File :: create ( out_dir. join ( "backtrace-supported.h" ) ) . unwrap ( ) ;
59
51
build. define ( "BACKTRACE_SUPPORTED" , "1" ) ;
60
52
build. define ( "BACKTRACE_USES_MALLOC" , "1" ) ;
61
53
build. define ( "BACKTRACE_SUPPORTS_THREADS" , "0" ) ;
62
54
build. define ( "BACKTRACE_SUPPORTS_DATA" , "0" ) ;
63
55
64
56
File :: create ( out_dir. join ( "config.h" ) ) . unwrap ( ) ;
65
- if !target. contains ( "apple-ios" ) {
57
+ if !target. contains ( "apple-ios" ) && !target . contains ( "solaris" ) {
66
58
build. define ( "HAVE_DL_ITERATE_PHDR" , "1" ) ;
67
59
}
68
60
build. define ( "_GNU_SOURCE" , "1" ) ;
You can’t perform that action at this time.
0 commit comments