diff options
| author | Jack Nagel | 2013-08-20 12:11:59 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-20 12:11:59 -0500 |
| commit | 34d27d027220345bf8a2e8d128b7f6e93378feb9 (patch) | |
| tree | 849df88ec243dbf2d92c844315f4c903a205730f /Library | |
| parent | ff182a8453fccc7bc969eb3c157437bf8fc6c35e (diff) | |
| download | homebrew-34d27d027220345bf8a2e8d128b7f6e93378feb9.tar.bz2 | |
openssl: avoid miscompilations under stdenv with clang and -O3
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/openssl.rb | 5 |
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 |
