Skip to content

Commit

Permalink
Octave: Adjust BLAS linker flags
Browse files Browse the repository at this point in the history
The `mkoctfile` tool, used to compile Octave packages, does not understand
`-framework <foo>`. Therefore, `-Wl,-framework -Wl,<foo>` must be used.

Fixes Homebrew#12229.
  • Loading branch information
Sharpie committed May 14, 2012
1 parent d2c417a commit cc2f67d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Formula/octave.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def install
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?

Expand Down

0 comments on commit cc2f67d

Please sign in to comment.