libgcrypt: fix CFLAGS

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-09-03 20:33:30 -05:00
parent c2e26d0604
commit eec8e4e64e

View file

@ -15,8 +15,8 @@ class Libgcrypt < Formula
end end
def cflags def cflags
cflags = "#{ENV['CFLAGS']}" cflags = ENV.cflags.to_s
cflags += '-std=gnu89 -fheinous-gnu-extensions' if ENV.compiler == :clang cflags += ' -std=gnu89 -fheinous-gnu-extensions' if ENV.compiler == :clang
cflags cflags
end end