Ignore:
Timestamp:
Jul 25, 2009, 5:03:12 PM (8 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.

File:
1 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}}
Note: See TracChangeset for help on using the changeset viewer.