diff --git a/liblmdb-sys/Cargo.toml b/liblmdb-sys/Cargo.toml index 5a208e41..0f499ef7 100644 --- a/liblmdb-sys/Cargo.toml +++ b/liblmdb-sys/Cargo.toml @@ -11,4 +11,4 @@ build = "build.rs" [dependencies] libc = "0.2" [build-dependencies] -gcc = "0.3" +cc = "1.0" diff --git a/liblmdb-sys/build.rs b/liblmdb-sys/build.rs index e96cf01d..439b681d 100755 --- a/liblmdb-sys/build.rs +++ b/liblmdb-sys/build.rs @@ -1,9 +1,9 @@ -extern crate gcc; +extern crate cc; fn main() { let target = std::env::var("TARGET").unwrap(); - let mut config = gcc::Config::new(); + let mut config = cc::Build::new(); config.file("mdb/libraries/liblmdb/mdb.c") .file("mdb/libraries/liblmdb/midl.c"); config.opt_level(2);