aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-11 12:06:28 -0500
committerJack Nagel2014-03-11 12:06:58 -0500
commit99d7fe63f787b23696724bdbca8300d9a189f039 (patch)
treeff0500431841c65191e36df756890031e9050ab0 /Library
parent47614c41ffcb69274c08410ea5a262137eeae6c3 (diff)
downloadhomebrew-99d7fe63f787b23696724bdbca8300d9a189f039.tar.bz2
openssl: work around makedepend issue caused by clang 5.1
Fixes #27400.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/openssl.rb13
1 files changed, 2 insertions, 11 deletions
diff --git a/Library/Formula/openssl.rb b/Library/Formula/openssl.rb
index 06e81488d..ec4d87ff5 100644
--- a/Library/Formula/openssl.rb
+++ b/Library/Formula/openssl.rb
@@ -32,7 +32,8 @@ class Openssl < Formula
%{"darwin64-x86_64-cc","cc:-arch x86_64 -O3},
%{"darwin64-x86_64-cc","cc:-arch x86_64 -Os}
- setup_makedepend_shim
+ inreplace "util/domd", %{expr "$MAKEDEPEND" : '.*gcc$' > /dev/null}, %{true}
+ inreplace "util/domd", %{${MAKEDEPEND}}, ENV.cc
else
args << "darwin-i386-cc"
end
@@ -46,16 +47,6 @@ class Openssl < Formula
system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl"
end
- def setup_makedepend_shim
- path = buildpath/"brew/makedepend"
- path.write <<-EOS.undent
- #!/bin/sh
- exec "#{ENV.cc}" -M "$@"
- EOS
- path.chmod 0755
- ENV.prepend_path 'PATH', path.parent
- end
-
def openssldir
etc/"openssl"
end