aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2011-02-22 09:26:57 -0800
committerAdam Vandenberg2011-02-22 09:26:57 -0800
commite86c39c29fe05d62e96a585523e5e79bad1dc19e (patch)
tree018d19d5812196f7ae6eb7fcff12a89f34f7bb91 /Library/Formula
parent2d9ce60924202458543e7785a6db8b8458f59eff (diff)
downloadhomebrew-e86c39c29fe05d62e96a585523e5e79bad1dc19e.tar.bz2
ncftp - disable optimization to work around build issue
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ncftp.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/Library/Formula/ncftp.rb b/Library/Formula/ncftp.rb
index 7dbb60ee5..b224f11f2 100644
--- a/Library/Formula/ncftp.rb
+++ b/Library/Formula/ncftp.rb
@@ -6,8 +6,15 @@ class Ncftp <Formula
md5 '685e45f60ac11c89442c572c28af4228'
def install
- system "./configure", "--disable-universal", "--disable-precomp",
- "--prefix=#{prefix}", "--mandir=#{man}"
+ # "disable universal" doesn't seem to work.
+ # If ncftp detects the 10.4 SDK, it will try to use GCC 4.0 which doesn't
+ # support all of the compiler flags we set.
+ # So, just disable optimizations intead.
+ ENV.no_optimization
+ system "./configure", "--disable-universal",
+ "--disable-precomp",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}"
system "make"
system "make install"
end