Ticket #8849: boost-1.54.0-config-attributes.patch

File boost-1.54.0-config-attributes.patch, 1.2 KB (added by pmachata@…, 9 years ago)

A fix

  • boost/config/compiler/gcc.hpp

    diff -urp boost_1_48_0~/boost/config/compiler/gcc.hpp boost_1_48_0/boost/config/compiler/gcc.hpp
    old new  
    120120     // _WIN32 or one of its variant spellings. Note that Cygwin is a POSIX environment,
    121121     // so does not define _WIN32 or its variants.
    122122#    define BOOST_HAS_DECLSPEC
    123 #    define BOOST_SYMBOL_EXPORT __attribute__((dllexport))
    124 #    define BOOST_SYMBOL_IMPORT __attribute__((dllimport))
     123#    define BOOST_SYMBOL_EXPORT __attribute__((__dllexport__))
     124#    define BOOST_SYMBOL_IMPORT __attribute__((__dllimport__))
    125125#  else
    126 #    define BOOST_SYMBOL_EXPORT __attribute__((visibility("default")))
     126#    define BOOST_SYMBOL_EXPORT __attribute__((__visibility__("default")))
    127127#    define BOOST_SYMBOL_IMPORT
    128128#  endif
    129 #  define BOOST_SYMBOL_VISIBLE __attribute__((visibility("default")))
     129#  define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default")))
    130130#else
    131131// config/platform/win32.hpp will define BOOST_SYMBOL_EXPORT, etc., unless already defined 
    132132#  define BOOST_SYMBOL_EXPORT