[Buildroot] [PATCH 1/1] xlib_libpthread-stubs: needs thread support

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Oct 8 21:51:46 UTC 2013


Dear Jerzy Grzegorek,

On Tue,  8 Oct 2013 23:27:17 +0200, Jerzy Grzegorek wrote:

>  config BR2_PACKAGE_XLIB_LIBPTHREAD_STUBS
>  	bool "libpthread-stubs"
> +	depends on BR2_TOOLCHAIN_HAS_THREADS

No, that doesn't work. When you add a toolchain dependency to one
package, you must propagate it to the reverse dependencies of this
package that are selecting this package.

For example, libdrm and libxcb are both selecting
XLIB_LIBPTHREAD_STUBS, but they do not have the
BR2_TOOLCHAIN_HAS_THREADS, so you should add this dependency to libdrm
and libxcb as well.

Best regards,

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



More information about the buildroot mailing list