git: b2ac626434c7 - 2025Q2 - math/slatec: fix build on armv7

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sun, 25 May 2025 00:50:10 UTC
The branch 2025Q2 has been updated by fuz:

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

commit b2ac626434c7f7853d4eb9087644f591c13cb27d
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-05-23 11:08:30 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-05-25 00:49:43 +0000

    math/slatec: fix build on armv7
    
    GNU ld supports neither -z relro nor -z norelro on armv7.
    Unfortunately <bsd.lib.mk> insists on adding either to the link.
    Work around this issue by using base ld for the link.
    
    While we're at it, set LICENSE=PD (US government work).
    
    MFH:            2025Q2
    (cherry picked from commit f56f31e07cb64c0b183127733bc6cd6af61efea1)
---
 math/slatec/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/slatec/Makefile b/math/slatec/Makefile
index 0c746dbf2da9..5b2e2ec45ead 100644
--- a/math/slatec/Makefile
+++ b/math/slatec/Makefile
@@ -14,6 +14,8 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	SLATEC Common Mathematical Library
 WWW=		https://www.netlib.org/slatec/
 
+LICENSE=	PD
+
 USES=		fortran uidfix
 USE_LDCONFIG=	yes
 WRKSRC=		${WRKDIR}/src
@@ -29,6 +31,10 @@ MAKE_ENV+=	LDADD="${LDADD}" SHLIB_MAJOR="${SHLIB_MAJOR}" \
 		SRCCONF="${SRCCONF}"
 FFLAGS+=	-std=legacy
 
+# ld.bfd supports neither -z relro nor -z norelro on armv7
+BINUTILS_NO_MAKE_ENV_armv7=	LD
+BINUTILS_NO_MAKE_ENV=	${BINUTILS_NO_MAKE_ENV_${ARCH}}
+
 OPTIONS_DEFINE=	DOCS PROFILE
 
 .include <bsd.port.options.mk>