[meta-oe] mpich: link explictly with libgcc

Submitted by Khem Raj on Aug. 18, 2021, 9:56 p.m. | Patch ID: 180095

Details

Message ID 20210818215630.1491048-1-raj.khem@gmail.com
State New
Headers show

Commit Message

Khem Raj Aug. 18, 2021, 9:56 p.m.
libmpi.so does need specific symbols from libgcc eg __multf3
on x86 irrespective of C library

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--
2.33.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#92655): https://lists.openembedded.org/g/openembedded-devel/message/92655
Mute This Topic: https://lists.openembedded.org/mt/84983730/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb b/meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb
index 3fe32f8c94..1fa916c0e8 100644
--- a/meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb
+++ b/meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb
@@ -31,8 +31,9 @@  PACKAGECONFIG += " \
 "
 PACKAGECONFIG[x11] = "--with-x --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--without-x,virtual/libx11"

-LDFLAGS:append:libc-glibc:x86-64 = " -lgcc"
-LDFLAGS:append:libc-glibc:x86 = " -lgcc"
+# libmpi.so needs symbols like __multf3 and somehow it does not respect --rtlib option passed by clang
+LDFLAGS:append:x86-64 = " -lgcc"
+LDFLAGS:append:x86 = " -lgcc"

 inherit autotools gettext pkgconfig