serf: make sure compiler choice is respected

master
Misty De Meo 2013-10-17 18:33:35 -07:00
parent 5aabaad4ab
commit 68eb44a216
1 changed files with 4 additions and 1 deletions

View File

@ -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