[139747] trunk/dports/devel/boost/files/patch-log-setup-link.diff
Revision: 139747 https://trac.macports.org/changeset/139747 Author: ryandesign@macports.org Date: 2015-08-25 22:36:01 -0700 (Tue, 25 Aug 2015) Log Message: ----------- boost: add missing patchfile Added Paths: ----------- trunk/dports/devel/boost/files/patch-log-setup-link.diff Added: trunk/dports/devel/boost/files/patch-log-setup-link.diff =================================================================== --- trunk/dports/devel/boost/files/patch-log-setup-link.diff (rev 0) +++ trunk/dports/devel/boost/files/patch-log-setup-link.diff 2015-08-26 05:36:01 UTC (rev 139747) @@ -0,0 +1,48 @@ +https://github.com/boostorg/log/pull/10 +https://github.com/crmoore/log/commit/870284ed31792708a6139925d00a0aadf46bf0... +--- boost/log/detail/setup_config.hpp ++++ boost/log/detail/setup_config.hpp +@@ -30,11 +30,17 @@ + # define BOOST_LOG_SETUP_DLL + # endif + +-# if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL) +-# define BOOST_LOG_SETUP_API __declspec(dllimport) +-# else ++# if defined(BOOST_LOG_SETUP_DLL) ++# if defined(BOOST_SYMBOL_IMPORT) ++# define BOOST_LOG_SETUP_API BOOST_SYMBOL_IMPORT ++# elif defined(BOOST_HAS_DECLSPEC) ++# define BOOST_LOG_SETUP_API __declspec(dllimport) ++# endif ++# endif ++# ifndef BOOST_LOG_SETUP_API + # define BOOST_LOG_SETUP_API +-# endif // defined(BOOST_HAS_DECLSPEC) ++# endif ++ + // + // Automatically link to the correct build variant where possible. + // +@@ -48,12 +54,15 @@ + + #else // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB) + +-# if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL) +-# define BOOST_LOG_SETUP_API __declspec(dllexport) +-# elif defined(__GNUC__) && __GNUC__ >= 4 && (defined(linux) || defined(__linux) || defined(__linux__)) +-# define BOOST_LOG_SETUP_API __attribute__((visibility("default"))) +-# else +-# define BOOST_LOG_SETUP_API ++# if defined(BOOST_LOG_SETUP_DLL) ++# if defined(BOOST_SYMBOL_EXPORT) ++# define BOOST_LOG_SETUP_API BOOST_SYMBOL_EXPORT ++# elif defined(BOOST_HAS_DECLSPEC) ++# define BOOST_LOG_SETUP_API __declspec(dllexport) ++# endif ++# endif ++# ifndef BOOST_LOG_SETUP_API ++# define BOOST_LOG_SETUP_API BOOST_SYMBOL_VISIBLE + # endif + + #endif // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB)
participants (1)
-
ryandesign@macports.org