File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,11 @@ build = "build.rs"
14
14
libc = " 0.2"
15
15
16
16
[build-dependencies ]
17
- pkg-config = " 0.3 "
17
+ metadeps = " 1 "
18
18
19
19
[target .'cfg(windows)' .dependencies ]
20
20
user32-sys = " 0.2"
21
21
gdi32-sys = " 0.2"
22
+
23
+ [package .metadata .pkg-config ]
24
+ openssl = " 1.0.1"
Original file line number Diff line number Diff line change 1
- extern crate pkg_config ;
1
+ extern crate metadeps ;
2
2
3
3
use std:: collections:: HashSet ;
4
4
use std:: env;
@@ -172,8 +172,8 @@ fn try_pkg_config() {
172
172
// cflags dirs for showing us lots of `-I`.
173
173
env:: set_var ( "PKG_CONFIG_ALLOW_SYSTEM_CFLAGS" , "1" ) ;
174
174
175
- let lib = match pkg_config :: find_library ( "openssl" ) {
176
- Ok ( lib ) => lib ,
175
+ let lib = match metadeps :: probe ( ) {
176
+ Ok ( mut libs ) => libs . remove ( "openssl" ) . unwrap ( ) ,
177
177
Err ( _) => return ,
178
178
} ;
179
179
You can’t perform that action at this time.
0 commit comments