aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-03-21 10:28:55 -0700
committerCharlie Sharpsteen2012-03-21 10:31:56 -0700
commit1e2b7e9c9bf5a3fdfb33de133f6707157c2e28f1 (patch)
treeef020283fb64784078f218d877deff410b3a5809 /Library/Formula
parentd82bfafa796ac015d2dd5b7da6084a4838c1f1d5 (diff)
downloadhomebrew-1e2b7e9c9bf5a3fdfb33de133f6707157c2e28f1.tar.bz2
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.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/qrupdate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/qrupdate.rb b/Library/Formula/qrupdate.rb
index 658cdb00f..0fdce851b 100644
--- a/Library/Formula/qrupdate.rb
+++ b/Library/Formula/qrupdate.rb
@@ -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