diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-08-31 18:21:54 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-09-01 15:52:05 -0700 |
commit | af1199a7aa2c19fd8c56b12dc865e25d549e6cfc (patch) | |
tree | 5e0c4e155c65f845a790a5f3a84e9ac5c9284e75 | |
parent | 803087e186662230133017a792e88c65e98d3d14 (diff) | |
download | meta-openembedded-af1199a7aa2c19fd8c56b12dc865e25d549e6cfc.tar.gz |
klibc: Do not let clang generate wcslen builtin
clang-21 decides to emit wcslen call on arm architecture
klibc does not provide widechar support so it should not
be used.
Fixes
| arm-yoe-linux-gnueabi-ld.bfd: usr/kinit/do_mounts_md.o: in function `md_run':
| /usr/src/debug/klibc/2.0.14/usr/kinit/do_mounts_md.c:294:(.text+0x5d6): undefined reference to `wcslen'
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 26d4ebc72c..4e8710f7bb 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
@@ -35,7 +35,7 @@ S = "${UNPACKDIR}/klibc-${PV}" | |||
35 | 35 | ||
36 | OPTFLAGS = "${TUNE_CCARGS} -Os -fcommon" | 36 | OPTFLAGS = "${TUNE_CCARGS} -Os -fcommon" |
37 | OPTFLAGS:append = " ${DEBUG_PREFIX_MAP}" | 37 | OPTFLAGS:append = " ${DEBUG_PREFIX_MAP}" |
38 | OPTFLAGS:append:toolchain-clang = " -fno-builtin-bcmp" | 38 | OPTFLAGS:append:toolchain-clang = " -fno-builtin-bcmp -fno-builtin-wcslen" |
39 | OPTFLAGS:append:toolchain-clang:mipsarch = " -no-integrated-as" | 39 | OPTFLAGS:append:toolchain-clang:mipsarch = " -no-integrated-as" |
40 | 40 | ||
41 | PARALLEL_MAKE = "" | 41 | PARALLEL_MAKE = "" |