diff --git a/meta-oe/recipes-devtools/protobuf/protobuf/0001-Fix-build-on-mips-clang.patch b/meta-oe/recipes-devtools/protobuf/protobuf/0001-Fix-build-on-mips-clang.patch index 1e0d04dc8d..1f5c9127de 100644 --- a/meta-oe/recipes-devtools/protobuf/protobuf/0001-Fix-build-on-mips-clang.patch +++ b/meta-oe/recipes-devtools/protobuf/protobuf/0001-Fix-build-on-mips-clang.patch @@ -3,10 +3,10 @@ From: Khem Raj Date: Mon, 10 Mar 2025 19:59:19 -0700 Subject: [PATCH] Fix build on mips/clang -clang13 crashes on mips, until its fixed upstream disable tailcall on +clang20 crashes on mips, until its fixed upstream disable tailcall on mips -https://bugs.llvm.org/show_bug.cgi?id=52367 +https://github.com/llvm/llvm-project/issues/51709 Upstream-Status: Inappropriate [Clang workaround] Signed-off-by: Khem Raj diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_5.29.4.bb b/meta-oe/recipes-devtools/protobuf/protobuf_5.29.4.bb index 9d49e0d3e4..30b805e6b1 100644 --- a/meta-oe/recipes-devtools/protobuf/protobuf_5.29.4.bb +++ b/meta-oe/recipes-devtools/protobuf/protobuf_5.29.4.bb @@ -22,8 +22,7 @@ SRC_URI = "git://github.com/protocolbuffers/protobuf.git;branch=29.x;protocol=ht file://0001-fix-protobuf-native-build-failure-with-gcc-10.patch \ file://0001-utf8_range-add-version-marker-to-library-19009.patch \ " -SRC_URI:append:mips:toolchain-clang = " file://0001-Fix-build-on-mips-clang.patch " -SRC_URI:append:mipsel:toolchain-clang = " file://0001-Fix-build-on-mips-clang.patch " +SRC_URI:append:mipsarcho32:toolchain-clang = " file://0001-Fix-build-on-mips-clang.patch " UPSTREAM_CHECK_GITTAGREGEX = "v(?P.(25\.(\d+)))" @@ -51,7 +50,8 @@ EXTRA_OECMAKE += "\ TEST_SRC_DIR = "examples" LANG_SUPPORT = "cpp ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python', '', d)}" -LDFLAGS:append:riscv32 = " -latomic" +CXXFLAGS:append:mipsarcho32 = " -latomic" +CXXFLAGS:append:riscv32 = " -latomic" do_compile_ptest() { mkdir -p "${B}/${TEST_SRC_DIR}"