git: 1620c3fe1137 - 2025Q1 - devel/libunwind: link with -lgcc on armv7

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Thu, 20 Feb 2025 23:29:56 UTC
The branch 2025Q1 has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1620c3fe1137de307048a91d80171c90e03ee069

commit 1620c3fe1137de307048a91d80171c90e03ee069
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-02-18 17:12:23 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-02-20 23:29:18 +0000

    devel/libunwind: link with -lgcc on armv7
    
    This is required to get the __aeabi_uidivmod symbol.  Random ports that
    use libunwind fail to build or work if that symbol is not present.
    
    Discussed with: andrew
    Approved by:    portmgr (build fix blanket)
    MFH:            2025Q1
    
    (cherry picked from commit 40cc5ff704801a2cb9e44a1e4bfb580878dd5494)
---
 devel/libunwind/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/devel/libunwind/Makefile b/devel/libunwind/Makefile
index 1130e2b72b2a..f1553b38f1c5 100644
--- a/devel/libunwind/Makefile
+++ b/devel/libunwind/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	libunwind
 PORTVERSION=	20240221	# This is the release date on https://github.com/libunwind/libunwind/releases
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	https://github.com/libunwind/libunwind/releases/download/v${LIBUNWIND_VERSION}/
 DISTNAME=	libunwind-${LIBUNWIND_VERSION}
@@ -22,7 +22,10 @@ USES=		compiler:c11 cpe libtool pathfix pkgconfig
 
 CONFIGURE_ARGS=	--disable-cxx-exceptions \
 		--disable-unwind-header \
-		ac_cv_path_LATEX2MAN=${TRUE}
+		ac_cv_path_LATEX2MAN=${TRUE} \
+		${CONFIGURE_ARGS_${ARCH}}
+CONFIGURE_ARGS_armv7=	ac_cv_search__Unwind_Resume="-lgcc_s -lgcc"
+
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes