Ignore:
Timestamp:
Aug 16, 2011, 8:04:22 AM (8 years ago)
Author:
vince@…
Message:

Correct a bug on Tiger (hw.cpufamily is not available)

File:
1 edited

Legend:

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

    r82453 r82585  
    171171}
    172172
    173 if { (${os.major} == 11 && \
    174         [exec sysctl -n hw.optional.avx1_0] == 1) || \
    175         [exec sysctl -n hw.cpufamily] == 1418770316 } {
     173if { (${os.major} == 11 && [exec sysctl -n hw.optional.avx1_0] == 1) || \
     174         (${os.major} > 8 && [exec sysctl -n hw.cpufamily] == 1418770316) } {
    176175        # Corei2 is not supported yet because gcc4.5 does not
    177176        # support AVX instructions and gcc4.6 does not compile yet.
Note: See TracChangeset for help on using the changeset viewer.