aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2021-04-03 06:09:57 +0000
committerPraneeth Bajjuri <praneeth@ti.com>2021-04-05 23:07:44 -0500
commite7d857b6c3c6e425275954d7d18af8107d12067a (patch)
treef65d3f8f5fd3c50aa12fe1448a15c38f72d27718 /recipes-devtools
parentbeeabe77cbadb38e71aad8f723e27d40f1f4a42d (diff)
downloadmeta-ti-e7d857b6c3c6e425275954d7d18af8107d12067a.tar.gz
meta-ti-e7d857b6c3c6e425275954d7d18af8107d12067a.tar.bz2
meta-ti-e7d857b6c3c6e425275954d7d18af8107d12067a.zip
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 <denys@konsulko.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/gdbc6x/gdbc6x_git.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-devtools/gdbc6x/gdbc6x_git.bb b/recipes-devtools/gdbc6x/gdbc6x_git.bb
index 2d2f6c1d6..aa519a91c 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