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 Homebrew/homebrew#11119.
This commit is contained in:
Charlie Sharpsteen 2012-03-21 10:28:55 -07:00
parent e1253c007c
commit 004fdcf645

View file

@ -13,7 +13,7 @@ class Qrupdate < Formula
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"
end