[Buildroot] [RFC] toolchain: libatomic needs NTPL threads support

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Aug 2 19:21:55 UTC 2016


Hello,

On Tue,  2 Aug 2016 19:25:55 +0200, Romain Naour wrote:
> Cairo package fail to build when BR2_TOOLCHAIN_HAS_LIBATOMIC is set and
> BR2_TOOLCHAIN_HAS_THREADS_NPTL is not set:
> m68k-buildroot-uclinux-uclibc/bin/ld.real: cannot find -latomic
> 
> Fixes:
> [arm]
> http://autobuild.buildroot.net/results/3d8dc45e41a043d2c2c26bfb26c3617499fbe671
> [m68k]
> http://autobuild.buildroot.net/results/318e01406e3e92eb589ee5b2231c671a4dbb6da4
> 
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

Do you have some evidence to explain this NPTL dependency? Indeed,
looking at libatomic/configure.ac in the gcc sources, I only see a test
on thread support, done by testing if pthread_create() is available.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list