Skip to content

Commit

Permalink
fix(sys): remove make_flags call to avoid build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsastrix committed Jun 28, 2022
1 parent 0e7da8e commit f0331aa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions libcoap-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ fn main() {
// Read required environment variables.
let out_dir = std::env::var_os("OUT_DIR").unwrap();
// Read Makeflags into vector of strings
let make_flags: Vec<String> = std::env::var_os("CARGO_MAKEFLAGS")
.unwrap()
.into_string()
.unwrap()
.split(' ')
.map(String::from)
.collect();
//let make_flags: Vec<String> = std::env::var_os("CARGO_MAKEFLAGS")
// .unwrap()
// .into_string()
// .unwrap()
// .split(' ')
// .map(String::from)
// .collect();

// Even though libcoap supports out-of-source builds, autogen.sh (or the corresponding
// autotools) modify files in the source tree, which causes verification problems when
Expand Down Expand Up @@ -154,7 +154,7 @@ fn main() {
}
build_config
// Set Makeflags
.make_args(make_flags)
//.make_args(make_flags)
// Disable shared library compilation because the vendored library will always be
// statically linked
.disable("shared", None)
Expand Down

0 comments on commit f0331aa

Please sign in to comment.