git: ab2d219b7da1 - main - math/linpack: fix build on armv7

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

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

commit ab2d219b7da1424f320842297d03c73b5c12bf76
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-05-22 13:15:17 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-05-25 00:47:04 +0000

    math/linpack: 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.
    
    MFH:            2025Q2
---
 math/linpack/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/math/linpack/Makefile b/math/linpack/Makefile
index 2f7f3d5a1d80..8aca5c80a33e 100644
--- a/math/linpack/Makefile
+++ b/math/linpack/Makefile
@@ -47,4 +47,8 @@ SRCS=	cchdc.f cchdd.f cchex.f cchud.f cgbco.f cgbdi.f cgbfa.f cgbsl.f \
 	zsico.f zsidi.f zsifa.f zsisl.f zspco.f zspdi.f zspfa.f zspsl.f \
 	zsvdc.f ztrco.f ztrdi.f ztrsl.f
 
+# 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}}
+
 .include <bsd.port.mk>