aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gnupg.rb
diff options
context:
space:
mode:
authorJack Nagel2012-02-19 01:05:25 -0600
committerJack Nagel2012-02-19 01:05:58 -0600
commit3e37c534e37f0f08929f697346e295b243ea54a5 (patch)
tree8788d4ccf2cc84989f8eea39d86cbc793271884e /Library/Formula/gnupg.rb
parenta4d1059d95615279eec4d6c3fb18c786255a8432 (diff)
downloadhomebrew-3e37c534e37f0f08929f697346e295b243ea54a5.tar.bz2
gnupg: fix compilation with clang
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/gnupg.rb')
-rw-r--r--Library/Formula/gnupg.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/gnupg.rb b/Library/Formula/gnupg.rb
index f42b3397f..b7341defe 100644
--- a/Library/Formula/gnupg.rb
+++ b/Library/Formula/gnupg.rb
@@ -24,6 +24,8 @@ class Gnupg < Formula
end
def install
+ ENV.append 'CFLAGS', '-std=gnu89' if ENV.compiler == :clang
+
if ARGV.include? '--idea'
opoo "You are building with support for the patented IDEA cipher."
d=Pathname.getwd