diff options
| author | Jack Nagel | 2013-08-23 12:36:25 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-23 12:54:06 -0500 |
| commit | e071076c215450c8a3d8cc35ca2a15ec3dbd73a6 (patch) | |
| tree | 46734018c0973b89b4419dbb9140eb3c4fd68859 /Library | |
| parent | 9e01e61d24bd091e4dc0e912f190d22499c0b7c6 (diff) | |
| download | homebrew-e071076c215450c8a3d8cc35ca2a15ec3dbd73a6.tar.bz2 | |
openssl: run "make depend" to recompute header dependencies
Fixes #21895.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/openssl.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/openssl.rb b/Library/Formula/openssl.rb index 909078918..a6fd64824 100644 --- a/Library/Formula/openssl.rb +++ b/Library/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 |
