mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
A toolchain uclibc-ng-1.0.43, binutils-2.40 and gcc-13.2.0 hits the following error when building: ld.bfd: isl_test2.o: non-canonical reference to canonical protected function `__pthread_key_create' in x86_64-multilib-linux-uclibc/sysroot/lib64/libc.so.1 ld.bfd: failed to set dynamic section sizes: bad value The reference comes from libgcc where it is using the __pthread_key_create() symbol to detect the use of pthreads with GNU libc. Prevent this on uclibc-ng with an explicit condition. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111322 Signed-off-by: Chris Packham <judge.packham@gmail.com>