aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/socat.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/socat.rb b/Library/Formula/socat.rb
index 82471fb79..1cdc2211d 100644
--- a/Library/Formula/socat.rb
+++ b/Library/Formula/socat.rb
@@ -6,6 +6,9 @@ class Socat < Formula
md5 '2081987fb0cb0290b8105574058cb329'
def install
+ # Lion requires this flag in some cases
+ ENV.append "CFLAGS", "-D__APPLE_USE_RFC_3542" if 10.7 <= MACOS_VERSION
+
ENV.enable_warnings # -wall causes build to fail
system "./configure", "--disable-debug", "--prefix=#{prefix}", "--mandir=#{man}"
system "make install"