Ticket #38271: gsl.disableAVX.diff

File gsl.disableAVX.diff, 811 bytes (added by daitakahashi, 12 years ago)

Patch to add -mno-avx to cflags

  • math/gsl/Portfile

    old new  
    8787}
    8888
    8989platform darwin i386 {
    90     if { [variant_isset optimize] && ( [variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] ) } {
    91         configure.cflags-append "-march=native"
     90    if { [variant_isset optimize] } {
     91        if { [variant_isset gcc43] } {
     92            configure.cflags-append "-march=native"
     93        } elseif { ( [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] ) } {
     94            configure.cflags-append "-march=native -mno-avx"
     95        }
    9296    }
    9397}