You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, looks like it's trying to use a flag your compiler doesn't support. (I'd forgotten some users could be on an Xcode with no "real" GCC!) I'll see if we can convince readline not to add it.
Try making this change to your Library/Formula/readline.rb to sidestep the issue for now (not sure if it applies to Lion & more recent versions yet).
diff --git a/Library/Formula/readline.rb b/Library/Formula/readline.rb
index 30086d4f41..47e7235673 100644
--- a/Library/Formula/readline.rb
+++ b/Library/Formula/readline.rb
@@ -39,7 +39,7 @@ class Readline < Formula
ENV.universal_binary
# Since we don't set any CFLAGS, readline adds some
# which break the build as they're not supported by GCC 4.2
- ENV.append_to_cflags "-g -O2" if ENV.compiler == :gcc
+ ENV.append_to_cflags "-g -O2" if ENV.compiler == :gcc or MacOS.version == :snow_leopard
system "./configure", "--prefix=#{prefix}", "--enable-multibyte"
system "make", "install"
end
https://gist.github.com/foxscribe/8ca0aaf0f33644f5be95c19cd4eaeaf0
The text was updated successfully, but these errors were encountered: