aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libgcrypt.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/libgcrypt.rb b/Library/Formula/libgcrypt.rb
index 4320bb679..954610387 100644
--- a/Library/Formula/libgcrypt.rb
+++ b/Library/Formula/libgcrypt.rb
@@ -7,9 +7,17 @@ class Libgcrypt < Formula
depends_on 'libgpg-error'
+ def patches
+ if ENV.compiler == :clang
+ { :p0 => "https://trac.macports.org/export/85232/trunk/dports/devel/libgcrypt/files/clang-asm.patch" }
+ end
+ end
+
def install
ENV.universal_binary # build fat so wine can use it
+ ENV.append 'CFLAGS', "-fheinous-gnu-extensions -std=gnu89" if ENV.compiler == :clang
+
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-asm",