aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-05-19 11:18:51 -0500
committerJack Nagel2013-05-19 11:18:53 -0500
commite697c1ab6feb23c0b23fad15973c3d7299dcba4e (patch)
tree7b19d5129cbf7f2b1d4dc889aa37df421a5a24f7 /Library
parentad4328672ad1ecd512184758528167a173cb85a6 (diff)
downloadhomebrew-e697c1ab6feb23c0b23fad15973c3d7299dcba4e.tar.bz2
Fix set_cpu_flags invocations in ENV.fortran
Fixes #19013. Fixes #19862. Fixes #19921.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 8b36a5b3d..aff48a686 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -468,7 +468,7 @@ class << ENV
flags_to_set.each {|key| self[key] = cflags}
# Ensure we use architecture optimizations for GCC 4.2.x
- set_cpu_flags flags_to_set, 'core2 -msse4',
+ set_cpu_flags flags_to_set, '-march=core2 -msse4',
Hardware::CPU.optimization_flags
elsif not self['FCFLAGS'] or self['FFLAGS']
opoo <<-EOS.undent
@@ -489,7 +489,7 @@ class << ENV
fc_flag_vars.each {|key| self[key] = cflags}
# Ensure we use architecture optimizations for GCC 4.2.x
- set_cpu_flags fc_flag_vars, 'core2 -msse4',
+ set_cpu_flags fc_flag_vars, '-march=core2 -msse4',
Hardware::CPU.optimization_flags
else