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

Fix universal builds of libgcrypt #18345

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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions Library/Formula/libgcrypt.rb
Expand Up @@ -29,6 +29,11 @@ def install
"--prefix=#{prefix}", "--prefix=#{prefix}",
"--disable-asm", "--disable-asm",
"--with-gpg-error-prefix=#{HOMEBREW_PREFIX}" "--with-gpg-error-prefix=#{HOMEBREW_PREFIX}"

if build.universal?
system "curl 'https://trac.macports.org/export/56608/trunk/dports/devel/libgcrypt/files/config.h.ed' | ed - config.h"
end

# Parallel builds work, but only when run as separate steps # Parallel builds work, but only when run as separate steps
system "make", "CFLAGS=#{cflags}" system "make", "CFLAGS=#{cflags}"
system "make check" system "make check"
Expand Down