Skip to content

Commit 3aeaaf7

Browse files
Fix uClibc build
uClibc has switched to NPTL by default, which requires TLS, that is not enabled by default in toolchain.This patch will make sure then when --tls is not used, than NPTL will not be built. That is a temporary patch, as I think we should replace --tls with --nptl to be more relevant, and we want to be ON by default. Signed-off-by: Anton Kolesov <[email protected]>
1 parent b8e1e77 commit 3aeaaf7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build-uclibc.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ if [ "x${TLS_SUPPORT}" = "xyes" ]
338338
then
339339
${SED} -e 's@LINUXTHREADS_OLD=y@UCLIBC_HAS_THREADS_NATIVE=y@' \
340340
-i ${TEMP_DEFCFG}
341+
else
342+
${SED} -e 's@UCLIBC_HAS_THREADS_NATIVE=y@LINUXTHREADS_OLD=y@' \
343+
-i ${TEMP_DEFCFG}
341344
fi
342345

343346
# Create the .config from the temporary defconfig file.
@@ -444,6 +447,9 @@ if [ "x${TLS_SUPPORT}" = "xyes" ]
444447
then
445448
${SED} -e 's@LINUXTHREADS_OLD=y@UCLIBC_HAS_THREADS_NATIVE=y@' \
446449
-i ${TEMP_DEFCFG}
450+
else
451+
${SED} -e 's@UCLIBC_HAS_THREADS_NATIVE=y@LINUXTHREADS_OLD=y@' \
452+
-i ${TEMP_DEFCFG}
447453
fi
448454

449455
# Create the .config from the temporary defconfig file.

0 commit comments

Comments
 (0)