openssl 1.1.0: disable 'async' bits relating to setcontext/etc on musl
This commit is contained in:
parent
3b5e1131a7
commit
aa00d53708
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ let
|
||||||
++ optional (versionOlder version "1.0.2" && hostPlatform.isDarwin)
|
++ optional (versionOlder version "1.0.2" && hostPlatform.isDarwin)
|
||||||
./darwin-arch.patch;
|
./darwin-arch.patch;
|
||||||
|
|
||||||
|
postPatch = if (versionAtLeast version "1.1.0" && stdenv.isMusl) then ''
|
||||||
|
substituteInPlace crypto/async/arch/async_posix.h \
|
||||||
|
--replace '!defined(__ANDROID__) && !defined(__OpenBSD__)' \
|
||||||
|
'!defined(__ANDROID__) && !defined(__OpenBSD__) && 0'
|
||||||
|
'' else null;
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "man" ];
|
outputs = [ "bin" "dev" "out" "man" ];
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
separateDebugInfo = hostPlatform.isLinux;
|
separateDebugInfo = hostPlatform.isLinux;
|
||||||
|
|
Loading…
Reference in a new issue