From 1c8b1c862bf321cf05b6543fb9a42eadbbeccfe2 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 25 Jun 2021 10:52:00 -0700 Subject: mpich: Add libgcc to ldflags on x86/glibc The build needs them in some subcomponents, it does not come to front when using libgcc as default but when compiler-rt is used then it does not link because its expecting functions from libgcc Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 0ee02d685c..20df3620d0 100644 --- a/meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb +++ b/meta-oe/recipes-devtools/mpich/mpich_3.4.2.bb @@ -31,7 +31,8 @@ PACKAGECONFIG += " \ " PACKAGECONFIG[x11] = "--with-x --x-includes=${STAGING_INCDIR} --x-libraries=${STAGING_LIBDIR},--without-x,virtual/libx11" -LDFLAGS_append_x86-64 = " -lgcc" +LDFLAGS_append_libc-glibc_x86-64 = " -lgcc" +LDFLAGS_append_libc-glibc_x86 = " -lgcc" inherit autotools gettext pkgconfig -- cgit 1.2.3-korg