Changeset 143448


Ignore:
Timestamp:
Dec 12, 2015, 5:41:13 PM (3 years ago)
Author:
mcalhoun@…
Message:

compilers-1.0.tcl: give Portfiles the option of keeping archflags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/compilers-1.0.tcl

    r142690 r143448  
    7272# compilers.enforce_some_fortran {args}: enforce that a dependency has some Fortran variant set
    7373#
     74# Options:
     75# compilers.clear_archflags: disable archflags ("-arch x86_64", -m64, etc.)
     76#
    7477# The compilers.gcc_default variable may be useful for setting a default compiler variant
    7578# even in ports that do not use this PortGroup's automatic creation of variants.
     
    7881PortGroup active_variants 1.1
    7982
    80 options compilers.variants compilers.gcc_variants
     83options compilers.variants compilers.gcc_variants compilers.clear_archflags
    8184default compilers.variants {}
    8285default compilers.fortran_variants {}
     
    9194default compilers.variants_conflict {}
    9295default compilers.libfortran {}
     96default compilers.clear_archflags yes
    9397
    9498# also set a default gcc version
     
    246250    global compilers.dragonegg_variants compilers.fortran_variants compilers.list
    247251    global compilers.variants_conflict
     252    global compilers.clear_archflags
    248253
    249254    foreach variant [split $args] {
     
    290295
    291296                        # disable archflags
    292                         if {"[info command configure.${compiler}_archflags]" ne ""} {
     297                        if {${compilers.clear_archflags} && "[info command configure.${compiler}_archflags]" ne ""} {
    293298                            configure.${compiler}_archflags
    294299                            configure.ld_archflags
Note: See TracChangeset for help on using the changeset viewer.