[Buildroot] [PATCH 3/3] package/boost: add library coroutine2

Vicente Olivert Riera Vincent.Riera at imgtec.com
Fri Dec 11 16:18:43 UTC 2015


Dear Jörg Krause,

On 11/12/15 16:00, Jörg Krause wrote:
> On Fr, 2015-12-11 at 16:46 +0100, Jörg Krause wrote:
>> Hi Vicente,
>> Hi Thomas,
>>
>> Also, look at the config.hpp in coroutine2:
>>
>>     #if (defined(BOOST_ALL_DYN_LINK) ||
>>     defined(BOOST_COROUTINES2_DYN_LINK) ) && !
>>     defined(BOOST_COROUTINES2_STATIC_LINK)
>>     # if defined(BOOST_COROUTINES2_SOURCE)
>>     #  define BOOST_COROUTINES2_DECL BOOST_SYMBOL_EXPORT
>>     #  define BOOST_COROUTINES2_BUILD_DLL
>>     # else
>>     #  define BOOST_COROUTINES2_DECL BOOST_SYMBOL_IMPORT
>>     # endif
>>     #endif
>>
>>     #if ! defined(BOOST_COROUTINES2_DECL)
>>     # define BOOST_COROUTINES2_DECL
>>     #endif
>>
>>     #if ! defined(BOOST_COROUTINES2_SOURCE) && !
>>     defined(BOOST_ALL_NO_LIB) && ! defined(BOOST_COROUTINES2_NO_LIB)
>>     # define BOOST_LIB_NAME boost_coroutine
>>     # if defined(BOOST_ALL_DYN_LINK) ||
>>     defined(BOOST_COROUTINES2_DYN_LINK)
>>     #  define BOOST_DYN_LINK
>>     # endif
>>     # include <boost/config/auto_link.hpp>
>>     #endif
>>
>> For coroutine a library name is defined, for coroutine2 not.
> 
> Sorry, I got this wrong.
> 
> What I really meant is that there would be no library name
> boost_coroutine2, but one named boost_coroutine, but only in case it is
> built. Since coroutine2 is just a bunch of header files as Thomas
> explained, no shared library named boost_coroutine is built at all.
> 
> Jörg
> 

understood, thanks for the clarification. Here you have my...

Reviewed-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com>

$ find output/staging/usr/include/boost/coroutine2/ -type f
output/staging/usr/include/boost/coroutine2/detail/pull_coroutine.ipp
output/staging/usr/include/boost/coroutine2/detail/pull_control_block.hpp
output/staging/usr/include/boost/coroutine2/detail/push_control_block.hpp
...

Regards,

Vincent.


More information about the buildroot mailing list