[meta-mingw][scarthgap][PATCH] gcc-cross-canadian: Disable C++ tools build

Rahul Trivedi <[email protected]>
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <CACoT=N69smMYYP7EfdtySviFkLNhom-_yNjMtv8+5=FCDF5ThQ@mail.gmail.com>
This disables C++ 20 modules since c++-tools are

needed for that feature to work, this is therefore

an intermediate fix until we fix the c++-tools build

issue which seems to related to it asking for pic

version of libiberty.a which is not generated separately

on x86 unlike other architectures because defaults are

PIC already


Signed-off-by: Khem Raj <[email protected]>

Signed-off-by: Richard Purdie <[email protected]>

(cherry picked from commit 4ac078fb567ce03d9181fb0480c7bd17dc5ddb5d)

Signed-off-by: Rahul Trivedi <[email protected]>

---

 recipes-devtools/gcc/gcc-cross-canadian_%.bbappend | 3 ++-

 1 file changed, 2 insertions(+), 1 deletion(-)


diff --git a/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend
b/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend

index 13ea016..2d4358a 100644

--- a/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend

+++ b/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend

@@ -1,5 +1,6 @@

 INSANE_SKIP:${PN}:append:sdkmingw32 = " staticdev"

-EXTRA_OECONF:append:sdkmingw32 = " --disable-nls"

+# Disable C++-20 modules features as the needed tools do not build for mingw

+EXTRA_OECONF:append:sdkmingw32 = " --disable-nls --disable-c++-tools"

 LDFLAGS:append:sdkmingw32 = " -Wl,-static"

 EXEEXT:sdkmingw32 = ".exe"

 ELFUTILS:sdkmingw32 = ""

--

2.51.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.