From 99d7fe63f787b23696724bdbca8300d9a189f039 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 11 Mar 2014 12:06:28 -0500 Subject: openssl: work around makedepend issue caused by clang 5.1 Fixes #27400. --- Library/Formula/openssl.rb | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3