[Buildroot] [PATCH 1/3] uclibc: adapt thread implementation selection to uClibc-ng
wbx at openadk.org
Sat Mar 7 17:20:39 UTC 2015
Thomas Petazzoni wrote,
> uClibc-ng does not support linuxthreads or linuxthreads.old on
> architectures that have NPTL support. This creates another complicated
> dependency: dependeing on the uClibc version being used, not the same
> thread implementations are available.
> In order to handle this situation, this patch introduces three hidden
> - BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS
> - BR2_UCLIBC_VERSION_SUPPORTS_LINUXTHREADS_OLD
> - BR2_UCLIBC_VERSION_SUPPORTS_NPTL
> They are selected by the different uClibc versions, depending on which
> thread implementation they support on the different architectures.
> Then, the choice of the thread implementation can rely on those
> booleans to know if a given thread implementation is available in the
> current architecture / uClibc version selection.
Looks good to me so far.
I am still unsatisfied about the ARC situation.
If you use this branch of gcc:
You get a working toolchain with TLS support and can use uClibc-git
or uClibc-ng 1.0.0 with NPTL.
More information about the buildroot