From e697c1ab6feb23c0b23fad15973c3d7299dcba4e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 19 May 2013 11:18:51 -0500 Subject: Fix set_cpu_flags invocations in ENV.fortran Fixes #19013. Fixes #19862. Fixes #19921. --- Library/Homebrew/extend/ENV.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3