Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] libunwind: Use -fcommon option to compile
@ 2020-08-05  6:14 Khem Raj
  2020-08-05  6:14 ` [PATCH 2/2] dhcp: Use -fcommon compiler option Khem Raj
  2020-08-05  9:26 ` [OE-core] [PATCH 1/2] libunwind: Use -fcommon option to compile Adrian Bunk
  0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2020-08-05  6:14 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

defaults for gcc is to use -fno-common this ensures that it keeps using
-fcommon until the real issue is fixed

Fixes
src/arm/Ginit.c:60: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/usr/src/debug/libunwind/1.4.0-r0/build/src/../../libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-support/libunwind/libunwind_1.4.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-support/libunwind/libunwind_1.4.0.bb b/meta/recipes-support/libunwind/libunwind_1.4.0.bb
index 34c2249e91..a0bfec90b5 100644
--- a/meta/recipes-support/libunwind/libunwind_1.4.0.bb
+++ b/meta/recipes-support/libunwind/libunwind_1.4.0.bb
@@ -23,3 +23,5 @@ ARM_INSTRUCTION_SET_armv5 = "arm"
 LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
 
 SECURITY_LDFLAGS_append_libc-musl = " -lssp_nonshared"
+
+CFLAGS += "-fcommon"
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-05 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-05  6:14 [PATCH 1/2] libunwind: Use -fcommon option to compile Khem Raj
2020-08-05  6:14 ` [PATCH 2/2] dhcp: Use -fcommon compiler option Khem Raj
2020-08-05  9:26 ` [OE-core] [PATCH 1/2] libunwind: Use -fcommon option to compile Adrian Bunk
2020-08-05 16:53   ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox