aboutsummaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/build.rs b/build.rs
index 37d90c7..055ac17 100644
--- a/build.rs
+++ b/build.rs
@@ -1,4 +1,4 @@
-extern crate gcc;
+extern crate cc;
extern crate pkg_config;
fn libvt100() {
@@ -31,13 +31,12 @@ fn glib() {
for dir in lib_def.link_paths {
println!("cargo:rustc-link-search=native={}", dir.to_str().unwrap());
}
- for lib in lib_def.libs {
- println!("cargo:rustc-link-lib={}", lib);
- }
}
fn libvt100_wrappers() {
- gcc::compile_library("libvt100wrappers.a", &["src/ffi.c"]);
+ cc::Build::new()
+ .file("src/ffi.c")
+ .compile("vt100wrappers");
}
fn main() {