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>
This commit is contained in:
parent
7a234f9d12
commit
1656ea1995
1 changed files with 8 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue