Changeset 37332


Ignore:
Timestamp:
Jun 3, 2008, 3:46:25 PM (12 years ago)
Author:
jmr@…
Message:

nbench-byte: simpler, more general 64-bit variant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/benchmarks/nbench-byte/Portfile

    r37288 r37332  
    4242
    4343variant use_64_bit description {Build a 64-bit executable} {
    44     pre-fetch {
    45         if {${os.platform} != "darwin"} {
    46             return -code error "The use_64_bit variant only works on Darwin"
    47         } elseif {${os.major} < 8} {
    48             return -code error "The use_64_bit variant needs Darwin 8 or later"
    49         }
    50     }
    51     if {${os.arch} == "i386"} {
    52         build.env-append CFLAGS="-arch x86_64"
    53     } elseif {${os.arch} == "powerpc"} {
    54         build.env-append CFLAGS="-arch ppc64"
    55     } else {
    56         ui_warn "Unknown arch: ${os.arch}"
    57     }
     44    build.env-append CFLAGS="-m64"
    5845}
    5946
Note: See TracChangeset for help on using the changeset viewer.