File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments