gcc-10 uses '-fno-common' by default, causing multiple definition
error. Use '-fcommon' to fix this problem.

Signed-off-by: Chen Qi <[email protected]>
---
 meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb 
b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
index d17baa0..87e5ada 100644
--- a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
+++ b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
@@ -37,6 +37,9 @@ SYSTEMD_AUTO_ENABLE = "disable"
 export FETCHCMD_wget = "/usr/bin/env wget --secure-protocol=TLSv1_2 -t 2 -T 30 
--passive-ftp --no-check-certificate"
 EXTRA_OECONF += "--sysconfdir=${sysconfdir}/${BPN}"
 
+# Fix build error with gcc-10
+CFLAGS_append = " -fcommon"
+
 # fix the perms for config.rpath
 do_configure_prepend() {
     chmod 755 ${S}/config.rpath
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50782): https://lists.yoctoproject.org/g/yocto/message/50782
Mute This Topic: https://lists.yoctoproject.org/mt/77030457/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to