Ticket #2114: boost_build_symbol_export.patch

File boost_build_symbol_export.patch, 2.2 KB (added by arhipjan@…, 14 years ago)

patch updated: boost-build part

  • tools/build/v2/tools/gcc.jam

     
    118118        }
    119119    }
    120120
     121    configure-version-specific $(version) ;
     122
    121123    local condition ;
    122124    if $(flavor)
    123125    {
     
    214216    rc.configure $(rc) : $(condition) : <rc-type>$(rc-type) ;
    215217}
    216218
     219rule configure-version-specific ( version )
     220{
     221    if [ MATCH ^("4.*") : $(version) ]
     222    {
     223        toolset.flags gcc.compile OPTIONS <hide-symbols>on : -fvisibility=hidden ;
     224        toolset.flags gcc.compile OPTIONS <hide-symbols>off : -fvisibility=default ;
     225        toolset.flags gcc.compile OPTIONS <hide-symbols>inlines : -fvisibility-inlines-hidden ;
     226    }
     227    if [ MATCH ^("4.3.*") : $(version) ]
     228    {
     229       toolset.flag gcc.compile OPTIONS <hide-symbols>ms-compat : -fvisibility-ms-compat ;
     230    }
     231}
     232
    217233if [ os.name ] = NT
    218234{
    219235    # This causes single-line command invocation to not go through .bat files,
  • tools/build/v2/tools/darwin.jam

     
    7171     <architecture>x86/<instruction-set>
    7272     <architecture>power/<address-model>32
    7373     <architecture>power/<address-model>64
    74      <architecture>power/<instruction-set>  ;
     74     <architecture>power/<instruction-set> 
     75     <hide-symbols>on
     76     <hide-symbols>off
     77     <hide-symbols>ms-compat
     78     <hide-symbols>inlines ;
    7579
    7680# Options:
    7781#
  • tools/build/v2/tools/builtin.jam

     
    289289# Used to select a specific variant of C++ ABI if the compiler supports several.
    290290feature.feature c++abi : : propagated optional ;
    291291
     292# Hide symbols
     293feature.feature hide-symbols : on off ms-compat inlines : optional free composite ;
     294
    292295feature.feature conditional : : incidental free ;
    293296
    294297# The value of 'no' prevents building of a target.