git: pass NO_OPENSSL=1 if building with CommonCrypto

Git will still attempt to import OpenSSL headers unless explicitly
told not to.

Fixes Homebrew/homebrew#40519.

Closes Homebrew/homebrew#40532.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
Misty De Meo 2015-06-09 12:22:25 -07:00
parent 1c835769d6
commit cd19d86801

View file

@ -77,12 +77,16 @@ class Git < Formula
ENV["NO_GETTEXT"] = "1" if build.without? "gettext"
system "make", "prefix=#{prefix}",
"sysconfdir=#{etc}",
"CC=#{ENV.cc}",
"CFLAGS=#{ENV.cflags}",
"LDFLAGS=#{ENV.ldflags}",
"install"
args = %W[
prefix=#{prefix}
sysconfdir=#{etc}
CC=#{ENV.cc}
CFLAGS=#{ENV.cflags}
LDFLAGS=#{ENV.ldflags}
]
args << "NO_OPENSSL=1" << "APPLE_COMMON_CRYPTO=1" if build.without? "brewed-openssl"
system "make", "install", *args
# Install the OS X keychain credential helper
cd "contrib/credential/osxkeychain" do