Skip to content

Commit

Permalink
openssl: work around makedepend issue caused by clang 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Mar 11, 2014
1 parent aa5d7bc commit c66b019
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Formula/openssl.rb
Expand Up @@ -32,7 +32,8 @@ def install
%{"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
Expand All @@ -46,16 +47,6 @@ def install
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
Expand Down

0 comments on commit c66b019

Please sign in to comment.