[Buildroot] [PATCH] package/qt5/qt5base: do not link against host libatomic when building host tools within qt5* target packages

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Aug 8 20:36:36 UTC 2021


On Fri,  6 Aug 2021 16:38:39 +0200
Quentin Schulz <quentin.schulz at theobroma-systems.com> wrote:

> qt5declarative builds qmltyperegistrar for the host as part of its build
> process.
> When building qt target packages (which is the case for qt5declarative),
> -spec devices/linux-buildroot-g++ is passed to qmake in QT5_QMAKE
> variable and this spec currently has -latomic in its LIBS.
> 
> This -latomic makes it to the build of the host build of
> qmltyperegistrar which is not useful.
> 
> This was discovered on Fedora 34 where libatomic is not pulled with gcc
> package, therefore was missing on the host machine.
> 
> This makes sure that -latomic is not added for host build of qt
> packages.
> 
> Fixes: 7d286be4f9 ("package/qt5base: link with -latomic when needed")
> 
> Cc: Quentin Schulz <foss at 0leil.net>
> Suggested-by: Arnout Vandecappelle <arnout at mind.be>
> Signed-off-by: Quentin Schulz <quentin.schulz at theobroma-systems.com>
> ---
>  package/qt5/qt5base/qt5base.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list