From 34d27d027220345bf8a2e8d128b7f6e93378feb9 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 20 Aug 2013 12:11:59 -0500 Subject: openssl: avoid miscompilations under stdenv with clang and -O3 --- Library/Formula/openssl.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3