aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjnothman2012-04-18 12:15:47 +1000
committerAdam Vandenberg2012-08-31 11:26:08 -0700
commitb6323bbfabf67f1dc55a790868198f37fb23cca1 (patch)
tree7fb646b6f8064e5a0877e4f2c2df17597991ec78
parent174e84b44248b44a3fd4da19611ba3e8c83b99bb (diff)
downloadhomebrew-b6323bbfabf67f1dc55a790868198f37fb23cca1.tar.bz2
Octave: fix compilation on 32 bit architectures
This fixes a bug where 32 bit compilations create spurious 'invalid assignment to cs-list outside multiple assignment' errors in Octave. See Fink's similar clause and discussion at http://www.mail-archive.com/fink-beginners@lists.sourceforge.net/msg26536.html. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/octave.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/octave.rb b/Library/Formula/octave.rb
index 96dbb3663..f84338303 100644
--- a/Library/Formula/octave.rb
+++ b/Library/Formula/octave.rb
@@ -81,6 +81,8 @@ class Octave < Formula
"--with-umfpack=-lumfpack -lsuitesparseconfig",
]
args << "--without-framework-carbon" if MacOS.lion?
+ # avoid spurious 'invalid assignment to cs-list' erorrs on 32 bit installs:
+ args << 'CXXFLAGS=-O0' if !MacOS.prefer_64_bit?
system "./configure", *args
system "make all"