Ticket #41554: patch-Portfile-gsl.diff
File patch-Portfile-gsl.diff, 1.4 KB (added by NicosPavlov, 11 years ago) |
---|
-
Portfile
6 6 name gsl 7 7 conflicts gsl-devel 8 8 version 1.16 9 revision 19 revision 2 10 10 categories math science 11 11 maintainers openmaintainer gmail.com:dtakahashi42 12 12 license GPL-3+ … … 84 84 configure.cflags-append "-ftree-vectorize -O3" 85 85 } 86 86 87 platform darwin i386{87 platform darwin { 88 88 if { [variant_isset optimize] } { 89 if { [variant_isset gcc43] } { 89 if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && 90 ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48]} { 91 #Compiler is by default clang, with optimize variant. If clang is not new 92 #enough, we use clang-3.3 93 if { ![catch {sysctl hw.optional.avx1_0} has_avx] && $has_avx == 1 && 94 [vercmp $xcodeversion 5.0] < 0} { 95 configure.compiler macports-clang-3.3 96 } 90 97 configure.cflags-append "-march=native" 91 } else if { [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] }{98 } else { 92 99 # Currently, gcc cannot compile AVX instructions on OSX 93 100 configure.cflags-append "-march=native -mno-avx" 94 101 }