Changeset 77716 for trunk/dports


Ignore:
Timestamp:
Apr 10, 2011, 5:16:25 PM (13 years ago)
Author:
mcalhoun@…
Message:

gmp: Ensure correct compiler is used to test processor.
Add warning that exact processor was not found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/gmp/Portfile

    r77715 r77716  
    6666        # fails to correctly detect some x86_64 models (e.g. Sandy Bridge)
    6767        pre-configure {
    68             set build_triplet [split [exec ${worksrcpath}/config.guess] -]
     68            set build_triplet [split [exec /usr/bin/env CC=${configure.cc} ${worksrcpath}/config.guess] -]
    6969            set build_cpu [lindex $build_triplet 0]
    7070            if {$build_cpu != "core2" && $build_cpu != "corei"} {
     71                ui_warn "No processor dependent assembly code being used. gmp might be slower."
    7172                configure.args-append --build=x86_64-[join [lrange $build_triplet 1 end] -]
    7273            }
Note: See TracChangeset for help on using the changeset viewer.