mirror of
git://git.openembedded.org/meta-openembedded
synced 2025-12-31 13:38:06 +00:00
klibc: Use libgcc for compiler runtime with clang on arm
Fixes build errors seen building klibc linking recipes Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
813ae0b029
commit
2de5071f9a
@ -16,6 +16,10 @@ CPPFLAGS = "${TUNE_CCARGS}"
|
|||||||
CPPFLAGS[export] = "1"
|
CPPFLAGS[export] = "1"
|
||||||
|
|
||||||
LDFLAGS = "${TUNE_CCARGS}"
|
LDFLAGS = "${TUNE_CCARGS}"
|
||||||
|
# Linking with compiler-rt on arm results in
|
||||||
|
# libclang_rt.builtins-armhf.a(divmoddi4.c.o): in function `__divmoddi4':
|
||||||
|
#/usr/src/debug/compiler-rt/20.1.8/compiler-rt/lib/builtins/divmoddi4.c:(.text.__divmoddi4+0x7a): undefined reference to `__stack_chk_fail'
|
||||||
|
LDFLAGS:append:toolchain-clang:libc-klibc:arm = " --rtlib=libgcc --unwindlib=libgcc"
|
||||||
LDFLAGS[export] = "1"
|
LDFLAGS[export] = "1"
|
||||||
|
|
||||||
OVERRIDES =. "libc-klibc:"
|
OVERRIDES =. "libc-klibc:"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user