Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

git: pass NO_OPENSSL=1 if building with CommonCrypto #40532

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions Library/Formula/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@ def install

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
Expand Down