[Buildroot] [PATCH/next 1/1] package/libubootenv: fix build with musl and static lib

Pierre-Jean Texier pjtexier at koncepto.io
Tue May 21 19:53:29 UTC 2019


Hello Thomas,

Le 21/05/2019 à 20:59, Thomas Petazzoni a écrit :
> Hello Pierre-Jean,
>
> On Tue, 21 May 2019 18:18:32 +0200
> Pierre-Jean Texier <pjtexier at koncepto.io> wrote:
>
>> Libubootenv is a shared library, so add missing dependency on !BR2_STATIC_LIBS.
> I think instead src/CMakeLists.txt should be changed to not force
> building a shared library.
Ok, I will do.
>
>> Also add BR2_TOOLCHAIN_USES_MUSL dependency to avoid 'unknown type name 'loff_t''.
> And here I'm pretty sure musl provides loff_t, it's probably just a
> missing #include.
In fact yes, we have to define _GNU_SOURCE.
I'll prepare a patch to fix this issue.
>
>> +comment "libubootenv application library needs a glibc or uClibc toolchain w/ dynamic library"
> The correct comment would be:
>
> comment "libubootenv needs a glibc or uClibc toolchain w/ dynamic library"
>
> but I think it's better to fix the actual problems.

No problem, I will send a v2 tomorrow.

Thanks

Pierre-Jean
>
> Best regards,
>
> Thomas




More information about the buildroot mailing list