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:
parent
1c835769d6
commit
cd19d86801
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue