commit: 0da0587f87c4e6285d94e5794c0617805eacb331
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 20 13:32:11 2025 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon Jan 20 13:33:47 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0da0587f
sys-libs/glibc: copy libgcc_s.so.1 into testdir (needed e.g. for arm)
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
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 9622057c7724..ce1e17c086a8 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