[Buildroot] [BUG] qt5declarative not building on host distro without libatomic.so
Quentin Schulz
quentin.schulz at theobroma-systems.com
Fri Aug 6 14:41:21 UTC 2021
Hi Arnout,
On Thu, Aug 05, 2021 at 04:43:50PM +0200, Arnout Vandecappelle wrote:
> Hi Quentin,
>
> On 05/08/2021 12:31, Quentin Schulz wrote:
>
> [snip]> From the logs and also the Makefile, it seems that qmltyperegistrar is
> > built with the wrong -spec passed to qmake. It should be
> > common/g++-base.conf (or something similar) and not
> > devices/linux-buildroot-g++ as currently.
>
> After a lot of analysis I come to the same conclusion.
>
> > This is confirmed a bit later in the Makefile with `-latomic` making it to LIBS
> > which might not be what's wanted?
> >
> > This `-latomic` was added in
> > 7d286be4f96cfb731e184c3e8cfea27a031bde3c "package/qt5base: link with -latomic when needed".
>
> We end up with $(HOST_DIR)/mkspecs/devices/linux-buildroot-g++/arch.conf that
> looks like this:
>
> -----8<-----8<-----
> LIBS += -latomic
> -----8<-----8<-----
>
> Perhaps that should be changed into:
>
> -----8<-----8<-----
> !host_build {
> LIBS += -latomic
> }
> -----8<-----8<-----
>
>
> Can you give that a go, and if it works, create a patch?
>
>
This seems to work just fine, thanks!
I've sent a patch. I've added a Suggested-by for you, not sure if it
should have your s-o-b or if you want to be the author, lemme know if
there's anything you want changed.
Thanks!
Regards,
Quentin
More information about the buildroot
mailing list