aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sl.rb
diff options
context:
space:
mode:
authorMax Howell2012-02-18 02:05:41 +0000
committerMax Howell2012-02-18 02:05:41 +0000
commitac33920cd9fcf35ee46036072b808e339ad8a088 (patch)
tree1e4eefd0152c8eef220a0608f0f37d1fe714831b /Library/Formula/sl.rb
parentc98549bde1dd5e56e06bff696d1fe3c10015924d (diff)
downloadhomebrew-ac33920cd9fcf35ee46036072b808e339ad8a088.tar.bz2
sl fails to build with clang
Diffstat (limited to 'Library/Formula/sl.rb')
-rw-r--r--Library/Formula/sl.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/sl.rb b/Library/Formula/sl.rb
index 44a0a13e2..165b0e09b 100644
--- a/Library/Formula/sl.rb
+++ b/Library/Formula/sl.rb
@@ -7,6 +7,8 @@ class Sl < Formula
md5 'd0d997b964bb3478f7f4968eee13c698'
def install
+ ENV.llvm if MacOS.clang_version.to_f <= 3.1
+
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
bin.install "sl"
man1.install "sl.1"