Remove the default toolchain flags.
Signed-off-by: Pawel Zalewski pzalewski@thegoodpenguin.co.uk --- .../recipes-devtools/llvm/llvm-morello-runtime-native.bb | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/meta-morello-toolchain/recipes-devtools/llvm/llvm-morello-runtime-native.bb b/meta-morello-toolchain/recipes-devtools/llvm/llvm-morello-runtime-native.bb index a1c27e3..7202ae4 100644 --- a/meta-morello-toolchain/recipes-devtools/llvm/llvm-morello-runtime-native.bb +++ b/meta-morello-toolchain/recipes-devtools/llvm/llvm-morello-runtime-native.bb @@ -13,6 +13,8 @@ B_COMPILERRT = "${WORKDIR}/build_compiler_rt" S_CRT = "${LLVM_SHARED_SOURCE}/compiler-rt/lib/crt" S_COMPILER_RT = "${LLVM_SHARED_SOURCE}/compiler-rt"
+RDEPENDS:${PN}:remove:toolchain-llvm-morello = " musl" + do_install[depends] += "llvm-morello-native:do_symlink"
FILES:${PN} += "$(${CC} -print-resource-dir)/lib/${LIB_TRIPLE}" @@ -35,6 +37,10 @@ BUILD_LD = "${LLVM_PATH}/ld.lld" BUILD_LTO = "-fuse-ld=lld" BUILD_HOSTCC = "${LLVM_PATH}/clang"
+CC:remove = "${CC_PURECAP_FLAGS}" +CXX:remove = "${CC_PURECAP_FLAGS}" +LDFLAGS:remove = "${LD_PURECAP_FLAGS}" + do_install() {
export CFLAGS=""