aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-08-20 12:11:59 -0500
committerJack Nagel2013-08-20 12:11:59 -0500
commit34d27d027220345bf8a2e8d128b7f6e93378feb9 (patch)
tree849df88ec243dbf2d92c844315f4c903a205730f /Library
parentff182a8453fccc7bc969eb3c157437bf8fc6c35e (diff)
downloadhomebrew-34d27d027220345bf8a2e8d128b7f6e93378feb9.tar.bz2
openssl: avoid miscompilations under stdenv with clang and -O3
Diffstat (limited to 'Library')
-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