git: 4b940a90490f - main - math/eispack: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 May 2025 00:47:46 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4b940a90490f2ec8c0f0108e655abc6f7faac276
commit 4b940a90490f2ec8c0f0108e655abc6f7faac276
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-05-22 13:18:21 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-05-25 00:47:05 +0000
math/eispack: 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/eispack/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/math/eispack/Makefile b/math/eispack/Makefile
index 17bf3c421805..398e09e90b97 100644
--- a/math/eispack/Makefile
+++ b/math/eispack/Makefile
@@ -56,4 +56,8 @@ post-extract:
@(cd ${_DISTDIR}; ${CP} ${SRCS} ${WRKSRC})
${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
+# 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>