openssl: avoid miscompilations under stdenv with clang and -O3
This commit is contained in:
parent
9fb4cc0a1f
commit
d46de7a5f5
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,11 @@ class Openssl < Formula
|
|||
|
||||
if MacOS.prefer_64_bit?
|
||||
args << "darwin64-x86_64-cc" << "enable-ec_nistp_64_gcc_128"
|
||||
|
||||
# -O3 is used under stdenv, which results in test failures when using clang
|
||||
inreplace 'Configure',
|
||||
%{"darwin64-x86_64-cc","cc:-arch x86_64 -O3},
|
||||
%{"darwin64-x86_64-cc","cc:-arch x86_64 -Os}
|
||||
else
|
||||
args << "darwin-i386-cc"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue