Changeset 104573 for trunk


Ignore:
Timestamp:
Mar 28, 2013, 7:34:19 PM (7 years ago)
Author:
vince@…
Message:

Fix bugs for ppc64 builds

File:
1 edited

Legend:

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

    r104554 r104573  
    246246    set cvct_flag           "-maltivec"
    247247   
    248     configure.args-append   --cc="'${configure.cc} -m32 \
    249                                  -force_cpusubtype_ALL'" \
    250                             -A 4
     248    configure.args-append   -A 4
    251249
    252250    # On Leopard, we may warn the user that ppc
    253251    # is not as efficient as ppc64
    254     if {${native_arch} == "ppc64"} {
     252    pre-fetch {
     253        if {${native_arch} == "ppc64"} {
    255254
    256255                ui_msg "Compiling for ppc on a G5 machine.\
    257256                        This could lead to reduced performance."
     257        }
    258258    }
    259259
     
    393393       
    394394        # If we build for the CPU of the machine, use
    395         # machine arch tuning.
     395        # machine arch tuning (except on ppc)
    396396        # -march=natives supersedes -msse4.2 so disable it on AVX
    397397        # capable machines
    398         if {${has_avx} == "no"} {
     398        if {${has_avx} == "no" && ${build_arch} != "ppc"} {
    399399
    400400            append gcc_flags    " -march=native"
     
    485485           
    486486            # We build for the native architecture
    487             if {${arch} == ${native_arch}} {
     487            if {${arch} == ${native_arch} && ${build_arch} != "ppc"} {
    488488               
    489489                if {${has_avx} == "no"} {
     
    626626    reinplace    "s|-no-cpp-precomp||g" \
    627627                    ${worksrcpath}/CONFIG/src/atlcomp.txt
     628                   
     629    # On PPC64 we need extra flags for configuring
     630    if {${native_arch} == "ppc64"} {
     631        configure.args-append   --cc="'${configure.cc} -m32 \
     632                                 -force_cpusubtype_ALL'"
     633    }
    628634
    629635    # Get some system specific variables for maximum optimization
Note: See TracChangeset for help on using the changeset viewer.