Ticket #48711: patch-log-setup-link.diff

File patch-log-setup-link.diff, 1.6 KB (added by crmoore (Chris Moore), 9 years ago)

Patch to boost source to export the missing symbols

  • boost/log/detail/setup_config.hpp

    diff --git boost/log/detail/setup_config.hpp boost/log/detail/setup_config.hpp
     
    3030#        define BOOST_LOG_SETUP_DLL
    3131#   endif
    3232
    33 #   if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL)
    34 #       define BOOST_LOG_SETUP_API __declspec(dllimport)
    35 #   else
     33#   if defined(BOOST_LOG_SETUP_DLL)
     34#       if defined(BOOST_SYMBOL_IMPORT)
     35#           define BOOST_LOG_SETUP_API BOOST_SYMBOL_IMPORT
     36#       elif defined(BOOST_HAS_DECLSPEC)
     37#           define BOOST_LOG_SETUP_API __declspec(dllimport)
     38#       endif
     39#   endif
     40#   ifndef BOOST_LOG_SETUP_API
    3641#       define BOOST_LOG_SETUP_API
    37 #   endif // defined(BOOST_HAS_DECLSPEC)
     42#   endif
     43
    3844//
    3945// Automatically link to the correct build variant where possible.
    4046//
     
    4854
    4955#else // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB)
    5056
    51 #   if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL)
    52 #       define BOOST_LOG_SETUP_API __declspec(dllexport)
    53 #   elif defined(__GNUC__) && __GNUC__ >= 4 && (defined(linux) || defined(__linux) || defined(__linux__))
    54 #       define BOOST_LOG_SETUP_API __attribute__((visibility("default")))
    55 #   else
    56 #       define BOOST_LOG_SETUP_API
     57#   if defined(BOOST_LOG_SETUP_DLL)
     58#       if defined(BOOST_SYMBOL_EXPORT)
     59#           define BOOST_LOG_SETUP_API BOOST_SYMBOL_EXPORT
     60#       elif defined(BOOST_HAS_DECLSPEC)
     61#           define BOOST_LOG_SETUP_API __declspec(dllexport)
     62#       endif
     63#   endif
     64#   ifndef BOOST_LOG_SETUP_API
     65#       define BOOST_LOG_SETUP_API BOOST_SYMBOL_VISIBLE
    5766#   endif
    5867
    5968#endif // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB)