aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/openssl.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/openssl.rb b/Library/Formula/openssl.rb
index 55ff21ca2..909078918 100644
--- a/Library/Formula/openssl.rb
+++ b/Library/Formula/openssl.rb
@@ -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