File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,19 @@ fn main() {
27
27
build_libbacktrace ( & host, & target) ;
28
28
}
29
29
30
- if target. contains ( "unknown- linux" ) {
30
+ if target. contains ( "linux" ) {
31
31
if target. contains ( "musl" ) && ( target. contains ( "x86_64" ) || target. contains ( "i686" ) ) {
32
32
println ! ( "cargo:rustc-link-lib=static=unwind" ) ;
33
+ } else if target. contains ( "android" ) {
34
+ println ! ( "cargo:rustc-link-lib=dl" ) ;
35
+ println ! ( "cargo:rustc-link-lib=log" ) ;
36
+ println ! ( "cargo:rustc-link-lib=gcc" ) ;
33
37
} else {
34
38
println ! ( "cargo:rustc-link-lib=dl" ) ;
35
39
println ! ( "cargo:rustc-link-lib=rt" ) ;
36
40
println ! ( "cargo:rustc-link-lib=pthread" ) ;
37
41
println ! ( "cargo:rustc-link-lib=gcc_s" ) ;
38
42
}
39
- } else if target. contains ( "android" ) {
40
- println ! ( "cargo:rustc-link-lib=dl" ) ;
41
- println ! ( "cargo:rustc-link-lib=log" ) ;
42
- println ! ( "cargo:rustc-link-lib=gcc" ) ;
43
43
} else if target. contains ( "freebsd" ) {
44
44
println ! ( "cargo:rustc-link-lib=execinfo" ) ;
45
45
println ! ( "cargo:rustc-link-lib=pthread" ) ;
You can’t perform that action at this time.
0 commit comments