aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-05-13 20:41:37 -0700
committerCharlie Sharpsteen2012-05-13 20:45:58 -0700
commitcc2f67d8405c2f4a50407648071dd0357f76ba4f (patch)
tree888c151b3609505388c780fbb3135ccb334a8068 /Library
parentd2c417a02bd7bda51754a5afc67b33724988ff23 (diff)
downloadhomebrew-cc2f67d8405c2f4a50407648071dd0357f76ba4f.tar.bz2
Octave: Adjust BLAS linker flags
The `mkoctfile` tool, used to compile Octave packages, does not understand `-framework <foo>`. Therefore, `-Wl,-framework -Wl,<foo>` must be used. Fixes #12229.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/octave.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/octave.rb b/Library/Formula/octave.rb
index 459c03ced..40e20950f 100644
--- a/Library/Formula/octave.rb
+++ b/Library/Formula/octave.rb
@@ -74,7 +74,9 @@ class Octave < Formula
args = [
"--disable-dependency-tracking",
"--prefix=#{prefix}",
- "--with-blas=#{'-ldotwrp ' if snow_leopard_64?}-framework Accelerate"
+ # Cant use `-framework Accelerate` because `mkoctfile`, the tool used to
+ # compile extension packages, can't parse `-framework` flags.
+ "--with-blas=#{'-ldotwrp ' if snow_leopard_64?}-Wl,-framework -Wl,Accelerate"
]
args << "--without-framework-carbon" if MacOS.lion?