Skip to content

Commit

Permalink
add engine support for linux-gnu
Browse files Browse the repository at this point in the history
Signed-off-by: Xintao <[email protected]>
  • Loading branch information
hunterlxt committed Jun 6, 2020
1 parent 269427f commit ef1cfcb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,19 @@ impl Build {
.arg("no-comp")
.arg("no-zlib")
.arg("no-zlib-dynamic")
// MUSL doesn't implement some of the libc functions that the async
// stuff depends on, and we don't bind to any of that in any case.
.arg("no-async");

if !target.contains("x86_64-unknown-linux-gnu") {
// This actually fails to compile on musl (it needs linux/version.h
// right now) but we don't actually need this most of the time. This
// is intended for super-configurable backends and whatnot
// apparently but the whole point of this script is to produce a
// "portable" implementation of OpenSSL, so shouldn't be any harm in
// turning this off.
.arg("no-engine")
// MUSL doesn't implement some of the libc functions that the async
// stuff depends on, and we don't bind to any of that in any case.
.arg("no-async");
configure.arg("no-engine");
}

// On Android it looks like not passing no-stdio may cause a build
// failure (#13), but most other platforms need it for things like
Expand Down

0 comments on commit ef1cfcb

Please sign in to comment.