diff options
| author | Jack Nagel | 2011-10-11 20:55:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2011-11-03 23:19:28 -0500 |
| commit | fa30a230cc35ad39c2f01cc485b1a831fa714aa0 (patch) | |
| tree | 268678a25ab72b750ba8ac27e8cb4801d1a5e962 /Library | |
| parent | a08c66ff2eb55d79ea1456384aa48b69098050a8 (diff) | |
| download | homebrew-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')
| -rw-r--r-- | Library/Formula/libgcrypt.rb | 8 |
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", |
