Changeset 54368


Ignore:
Timestamp:
Jul 25, 2009, 5:03:12 PM (9 years ago)
Author:
mcalhoun@…
Message:

Some ports assume that any necessary header and library files are found by default by the compiler (e.g. in /usr/include or /usr/local/include).
Changing -I${prefix}/include to -isystem{prefix}/include usually fixes the problem (See r49050, r42207, r49018, r39803, and r47699).
Setting environmental variables CPATH and LIBRARY_PATH should make setting -isystem unnecessary.
Deleting -I${prefix}/include is only required.

Location:
trunk/base/src/port1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portmain.tcl

    r52324 r54368  
    4949options worksrcdir filesdir distname portdbpath libpath distpath sources_conf os.platform os.version os.major os.arch os.endian platforms default_variants install.user install.group macosx_deployment_target
    5050options universal_variant os.universal_supported
     51options compiler.cpath compiler.library_path
    5152
    5253# Export options via PortInfo
     
    114115default universal_variant yes
    115116
     117default compiler.cpath {${prefix}/include}
     118default compiler.library_path {${prefix}/lib}
     119
    116120# Select implicit variants
    117121if {[info exists os.platform] && ![info exists variations(${os.platform})]} { variant_set ${os.platform}}
  • trunk/base/src/port1.0/portutil.tcl

    r54367 r54368  
    359359        set ${command}.env_array(MACOSX_DEPLOYMENT_TARGET) [option macosx_deployment_target]
    360360    }
     361    if {[option compiler.cpath] ne ""} {
     362        set ${command}.env_array(CPATH) [join [option compiler.cpath] :]
     363    }
     364    if {[option compiler.library_path] ne ""} {
     365        set ${command}.env_array(LIBRARY_PATH) [join [option compiler.library_path] :]
     366    }
    361367
    362368    # Debug that.
Note: See TracChangeset for help on using the changeset viewer.