From abfa9f3ad8ce712b46519fb875a53711110e09fb Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Thu, 17 Oct 2013 18:33:35 -0700 Subject: serf: make sure compiler choice is respected --- Library/Formula/serf.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/serf.rb b/Library/Formula/serf.rb index 4467af81f..231a24295 100644 --- a/Library/Formula/serf.rb +++ b/Library/Formula/serf.rb @@ -26,7 +26,10 @@ class Serf < Formula def install ENV.universal_binary if build.universal? - system "scons", "PREFIX=#{prefix}", "GSSAPI=/usr" + # scons ignores our compiler and flags unless explicitly passed + args = %W[PREFIX=#{prefix} GSSAPI=/usr CC=#{ENV.cc} + CFLAGS=#{ENV.cflags} LINKFLAGS=#{ENV.ldflags}] + system "scons", *args system "scons install" end end -- cgit v1.2.3