aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2011-10-11 20:55:30 -0500
committerJack Nagel2011-11-03 23:19:28 -0500
commitfa30a230cc35ad39c2f01cc485b1a831fa714aa0 (patch)
tree268678a25ab72b750ba8ac27e8cb4801d1a5e962 /Library/Formula
parenta08c66ff2eb55d79ea1456384aa48b69098050a8 (diff)
downloadhomebrew-fa30a230cc35ad39c2f01cc485b1a831fa714aa0.tar.bz2
libgcrypt: apply clang fixes
This is kind of hackish, but we can clean it up when we get the compiler selection code up to snuff again. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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",