Skip to contentSkip to conversation

klibc: Apply -no-integrated-as on mips/clang

PATCH New Khem Raj 1 participant 1 message Dec 14, 2019

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 klibc: Apply -no-integrated-as on mips/clang

Fixes build error

| /mnt/b/yoe/build/tmp/work/mips32r2-yoe-linux-musl/klibc/2.0.7-r0/klibc-2.0.7/usr/klibc/syscalls.pl: usr/klib c/syscalls/typesize.bin: magic number not found

...

| usr/klibc/sigsuspend.c:8:10: fatal error: 'klibc/havesyscall.h' file not found
| #include <klibc/havesyscall.h>
|          ^~~~~~~~~~~~~~~~~~~~~
| 1 error generated.
Cc Andrea Adami <[email protected]>
---
 meta-initramfs/recipes-devtools/klibc/klibc.inc | 1 +
 1 file changed, 1 insertion(+)
meta-initramfs/recipes-devtools/klibc/klibc.inc +1 -0
index e1afe7f33e..289288d480 100644
@@ -37,6 +37,7 @@ S = "${WORKDIR}/klibc-${PV}"
 
 OPTFLAGS = "${TUNE_CCARGS} -Os"
 OPTFLAGS_append_toolchain-clang = " -fno-builtin-bcmp"
+OPTFLAGS_append_toolchain-clang_mipsarch = " -no-integrated-as"
 
 PARALLEL_MAKE = ""
 EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
Signature · 1 line
2.24.1