aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMax Howell2012-03-05 20:09:19 +0000
committerMax Howell2012-03-05 20:09:38 +0000
commitd1596af326d9e6555f6fcce5571c10e8eebd11c0 (patch)
tree76e51c719eb619a286b7084458da54d6f0413d61 /Library/Formula
parent59400856e3147346fbd18666eced7560473fcd39 (diff)
downloadhomebrew-d1596af326d9e6555f6fcce5571c10e8eebd11c0.tar.bz2
Socat fails with clang
Closes #10700.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/socat.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/socat.rb b/Library/Formula/socat.rb
index 6afcce1d8..0cea9ae2f 100644
--- a/Library/Formula/socat.rb
+++ b/Library/Formula/socat.rb
@@ -8,6 +8,8 @@ class Socat < Formula
depends_on 'readline'
def install
+ ENV.llvm if MacOS.default_compiler == :clang and MacOS.clang_version.to_f <= 3.1
+
# Lion requires this flag in some cases
ENV.append "CFLAGS", "-D__APPLE_USE_RFC_3542" if 10.7 <= MACOS_VERSION