From e7d857b6c3c6e425275954d7d18af8107d12067a Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Sat, 3 Apr 2021 06:09:57 +0000 Subject: [PATCH] gdbc6x: suppress gcc10 multiple definitions of *_varobj_ops Workaround for the following gcc10 errors: .../gdbc6x/gdb/varobj.h:221: multiple definition of `ada_varobj_ops'; mi-cmd-var.o:.../gdbc6x/gdb/./varobj.h:221: first defined here .../gdbc6x/gdb/varobj.h:220: multiple definition of `java_varobj_ops'; mi-cmd-var.o:.../gdbc6x/gdb/./varobj.h:220: first defined here .../gdbc6x/gdb/varobj.h:219: multiple definition of `cplus_varobj_ops'; mi-cmd-var.o:.../gdbc6x/gdb/./varobj.h:219: first defined here .../gdbc6x/gdb/varobj.h:218: multiple definition of `c_varobj_ops'; mi-cmd-var.o:.../gdbc6x/gdb/./varobj.h:218: first defined here Needs to be resolved properly in the code later: https://gcc.gnu.org/gcc-10/porting_to.html Signed-off-by: Denys Dmytriyenko --- recipes-devtools/gdbc6x/gdbc6x_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-devtools/gdbc6x/gdbc6x_git.bb b/recipes-devtools/gdbc6x/gdbc6x_git.bb index 2d2f6c1d..aa519a91 100644 --- a/recipes-devtools/gdbc6x/gdbc6x_git.bb +++ b/recipes-devtools/gdbc6x/gdbc6x_git.bb @@ -19,6 +19,8 @@ S = "${WORKDIR}/git/gdbc6x" inherit update-rc.d inherit gettext +CFLAGS += "-fcommon" + do_configure () { cd ${S} ./configure --program-suffix=c6x --target=tic6x-elf-tirtos --host=${HOST_SYS} --prefix=${S}/install_gdb