From eec8e4e64eae56ee4abd04e8614f5d95a0272b9d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 3 Sep 2012 20:33:30 -0500 Subject: [PATCH] libgcrypt: fix CFLAGS Signed-off-by: Jack Nagel --- Formula/libgcrypt.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/libgcrypt.rb b/Formula/libgcrypt.rb index 6bb9ca73d5..14856e7e9f 100644 --- a/Formula/libgcrypt.rb +++ b/Formula/libgcrypt.rb @@ -15,8 +15,8 @@ class Libgcrypt < Formula end def cflags - cflags = "#{ENV['CFLAGS']}" - cflags += '-std=gnu89 -fheinous-gnu-extensions' if ENV.compiler == :clang + cflags = ENV.cflags.to_s + cflags += ' -std=gnu89 -fheinous-gnu-extensions' if ENV.compiler == :clang cflags end