Browse files

qrupdate: Substitute FCFLAGS instead of CFLAGS

In the Makefile, `FFLAGS` was being set to the value of `CFLAGS` which no
longer works when the flags are being tuned for the Clang compiler. `FCFLAGS`
is now used instead as it contains a copy of `CFLAGS` that has been edited for
use by GFortran.

Fixes #11119.
  • Loading branch information...
1 parent d82bfaf commit 1e2b7e9c9bf5a3fdfb33de133f6707157c2e28f1 @Sharpie Sharpie committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Formula/qrupdate.rb
@@ -13,7 +13,7 @@ def install
inreplace 'Makeconf' do |s|
# as per the caveats in the gfortran formula:
s.gsub! /^(FC=).*/, "\\1#{HOMEBREW_PREFIX}/bin/gfortran"
- s.gsub! /^(FFLAGS=).*/, "\\1"+ENV["CFLAGS"]
+ s.gsub! /^(FFLAGS=).*/, "\\1"+ENV["FCFLAGS"]
s.gsub! /^(BLAS=).*/, "\\1#{ENV["LDFLAGS"]} -ldotwrp -framework Accelerate"
s.gsub! /^(LAPACK=).*/, "\\1#{ENV["LDFLAGS"]} -ldotwrp -framework Accelerate"

0 comments on commit 1e2b7e9

Please sign in to comment.