Skip to content

Commit 20bbf32

Browse files
authored
Add engine support for linux-gnu (#63)
* add engine support for linux-gnu Signed-off-by: Xintao <[email protected]> * address comment Signed-off-by: Xintao <[email protected]> * add blacklist os Signed-off-by: Xintao <[email protected]> * add blacklist os Signed-off-by: Xintao <[email protected]> * To check CI build info Signed-off-by: Xintao <[email protected]> * add comments Signed-off-by: Xintao <[email protected]>
1 parent 269427f commit 20bbf32

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/lib.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,20 @@ impl Build {
102102
// Nothing related to zlib please
103103
.arg("no-comp")
104104
.arg("no-zlib")
105-
.arg("no-zlib-dynamic")
105+
.arg("no-zlib-dynamic");
106+
107+
if target.contains("musl") || target.contains("windows") {
106108
// This actually fails to compile on musl (it needs linux/version.h
107-
// right now) but we don't actually need this most of the time. This
108-
// is intended for super-configurable backends and whatnot
109-
// apparently but the whole point of this script is to produce a
110-
// "portable" implementation of OpenSSL, so shouldn't be any harm in
111-
// turning this off.
112-
.arg("no-engine")
109+
// right now) but we don't actually need this most of the time.
110+
// API of engine.c ld fail in Windows.
111+
configure.arg("no-engine");
112+
}
113+
114+
if target.contains("musl") {
113115
// MUSL doesn't implement some of the libc functions that the async
114116
// stuff depends on, and we don't bind to any of that in any case.
115-
.arg("no-async");
117+
configure.arg("no-async");
118+
}
116119

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

0 commit comments

Comments
 (0)