Changeset 109811


Ignore:
Timestamp:
Aug 20, 2013, 1:52:20 PM (6 years ago)
Author:
nicos@…
Message:

gsl: disable avx for gcc compilers (ticket #38271)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/gsl/Portfile

    r109676 r109811  
    77conflicts           gsl-devel
    88version             1.16
     9revision            1
    910categories          math science
    1011maintainers         openmaintainer gmail.com:dtakahashi42
     
    8182
    8283platform darwin i386 {
    83     if { [variant_isset optimize] && ( [variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] ) } {
    84         configure.cflags-append "-march=native"
     84    if { [variant_isset optimize] } {
     85        if { [variant_isset gcc43] } {
     86            configure.cflags-append "-march=native"
     87        } elseif { [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] } {
     88            # Currently, gcc cannot compile AVX instructions on OSX
     89            configure.cflags-append "-march=native -mno-avx"
     90        }
    8591    }
    8692}
Note: See TracChangeset for help on using the changeset viewer.