Skip to content

Commit

Permalink
libcubeb-sys: Fix build when linux sound libs are missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
djg committed Feb 13, 2018
1 parent 7c527d0 commit 211c7e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cubeb-api/libcubeb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ fn main() {
println!("cargo:rustc-link-lib=dylib=stdc++");
println!("cargo:rustc-link-search=native={}/lib", dst.display());

pkg_config::find_library("alsa").unwrap();
pkg_config::find_library("libpulse").unwrap();
pkg_config::find_library("jack").unwrap();
// Ignore the result of find_library. We don't care if the
// libraries are missing.
let _ = pkg_config::find_library("alsa");
let _ = pkg_config::find_library("libpulse");
let _ = pkg_config::find_library("jack");
}
}

0 comments on commit 211c7e4

Please sign in to comment.