aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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