diff --git a/Formula/openssl.rb b/Formula/openssl.rb index 909078918c..a6fd648248 100644 --- a/Formula/openssl.rb +++ b/Formula/openssl.rb @@ -24,6 +24,8 @@ class Openssl < Formula inreplace 'Configure', %{"darwin64-x86_64-cc","cc:-arch x86_64 -O3}, %{"darwin64-x86_64-cc","cc:-arch x86_64 -Os} + + setup_makedepend_shim else args << "darwin-i386-cc" end @@ -31,11 +33,22 @@ class Openssl < Formula system "perl", *args ENV.deparallelize + system "make", "depend" if MacOS.prefer_64_bit? system "make" system "make", "test" 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