From 980865d234aa8c8d8f16427d1c6befaa58f200cc Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 21 Sep 2026 01:15:52 +0100 Subject: [PATCH] sys-libs/libunwind: fix build (typo in configure) I assume this shows up w/ new libtool but I can't reproduce it. Closes: https://bugs.gentoo.org/982993 Signed-off-by: Sam James --- .../files/libunwind-1.8.3-another-typo.patch | 27 +++++++++++++++++++ sys-libs/libunwind/libunwind-1.8.3.ebuild | 1 + 2 files changed, 28 insertions(+) create mode 100644 sys-libs/libunwind/files/libunwind-1.8.3-another-typo.patch diff --git a/sys-libs/libunwind/files/libunwind-1.8.3-another-typo.patch b/sys-libs/libunwind/files/libunwind-1.8.3-another-typo.patch new file mode 100644 index 0000000000000..3e01af7b971f0 --- /dev/null +++ b/sys-libs/libunwind/files/libunwind-1.8.3-another-typo.patch @@ -0,0 +1,27 @@ +https://bugs.gentoo.org/982993 +https://github.com/libunwind/libunwind/commit/8e6a348b94a1b8e77ec2a086ff27ea9b78357d71 + +From 8e6a348b94a1b8e77ec2a086ff27ea9b78357d71 Mon Sep 17 00:00:00 2001 +From: Matt Turner +Date: Sat, 25 Apr 2026 10:14:20 -0400 +Subject: [PATCH] configure: Fix -WCClinker typo; should be -XCClinker + +Fixes: 5f46ba49 ("Made -nostdlib depend on exception support") +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index e5907a0b9..36d21f24a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -302,7 +302,7 @@ AM_COND_IF([SUPPORT_CXX_EXCEPTIONS], + [gcc_s gcc], + [AS_IF([test "$ac_cv_search__Unwind_Resume" != "none required"], + [AC_SUBST([UNW_CRT_LIBADD], ["-lc $ac_cv_search__Unwind_Resume"]) +- AC_SUBST([UNW_CRT_LDFLAGS], ["-WCClinker -nostdlib"])]) ++ AC_SUBST([UNW_CRT_LDFLAGS], ["-XCClinker -nostdlib"])]) + ],, + [-lc]) + LDFLAGS="$save_LDFLAGS"] + diff --git a/sys-libs/libunwind/libunwind-1.8.3.ebuild b/sys-libs/libunwind/libunwind-1.8.3.ebuild index 2b9513d1614c3..38910f8b4dba4 100644 --- a/sys-libs/libunwind/libunwind-1.8.3.ebuild +++ b/sys-libs/libunwind/libunwind-1.8.3.ebuild @@ -77,6 +77,7 @@ MULTILIB_WRAPPED_HEADERS=( PATCHES=( "${FILESDIR}"/${P}-typo.patch + "${FILESDIR}"/${P}-another-typo.patch ) src_prepare() {