Skip to contentSkip to conversation

mpich: link explictly with libgcc

PATCH New Khem Raj 1 participant 1 message Aug 18, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 mpich: link explictly with libgcc

libmpi.so does need specific symbols from libgcc eg __multf3 on x86 irrespective of C library

---
 meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb +3 -2
index 3fe32f8c94..1fa916c0e8 100644
@@ -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
 

--
2.33.0