From 0da0587f87c4e6285d94e5794c0617805eacb331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Mon, 20 Jan 2025 14:32:11 +0100 Subject: [PATCH] sys-libs/glibc: copy libgcc_s.so.1 into testdir (needed e.g. for arm) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas K. Hüttel --- sys-libs/glibc/glibc-9999.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild index 9622057c77247..ce1e17c086a82 100644 --- a/sys-libs/glibc/glibc-9999.ebuild +++ b/sys-libs/glibc/glibc-9999.ebuild @@ -1295,6 +1295,16 @@ glibc_src_test() { done fi + # on some architectures, libsupport requires libgcc_s.so support for unwinding + # if it's not present then many tests fail + + if tc-is-gcc ; then + local lgc=$(${CC} -print-libgcc-file-name) + lgc=${lgc/.a/_s.so.1} + einfo "Copying ${lgc} into build directory" + cp "${lgc}" ./ || die + fi + # sandbox does not understand unshare() and prevents # writes to /proc/, which makes many tests fail