[Buildroot] [PATCH v2 1/2] bctoolbox: new package

Jörg Krause joerg.krause at embedded.rocks
Tue Feb 7 12:54:09 UTC 2017


On Tue, 2017-02-07 at 12:20 +0100, Peter Korsgaard wrote:
> > > > > > "Jörg" == Jörg Krause <joerg.krause at embedded.rocks> writes:
> 
>  > bctoolbox is a utilities library used by Belledonne Communications
>  > softwares like belle-sip, mediastreamer2 and linphone.
> 
>  > Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> 
> This seems to break building ortp statically:
> 
> http://autobuild.buildroot.org/?reason=ortp-0.27.0
> 
> Looking further, it comes from the bctoolbox pkg-config file
> libs.private:
> 
> bctoolbox-0.4.0/bctoolbox.pc.in:
> Libs.private: @LIBS_PRIVATE@
> 
> Which gets populated from cmake:
> 
> bctoolbox-0.4.0/CMakeLists.txt:
> 
> if(MBEDTLS_FOUND)
>         get_filename_component(mbedtls_library_path
> "${MBEDTLS_LIBRARIES}" PATH)
>         set(LIBS_PRIVATE "${LIBS_PRIVATE} -L${mbedlts_library_path}")
> endif()
> 
> mbedtls_library_path is apparently the empty string, so it ends up
> just
> with "-L".
> 
> Samuel/Jörg, any idea how this should work?

I already had a look at this, but had no time to prepare a fix for it
so far. The problem is that `-lmbedtls` is missing after `-L`. So it
should be:

set(LIBS_PRIVATE "${LIBS_PRIVATE} -L${mbedlts_library_path} -lmbedtls")

However, there are some more issues with the bctoolbox package to get
static linking working properly.

Jörg


More information about the buildroot mailing list