summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2025-05-23 09:09:37 +0200
committerRobert Clausecker <fuz@FreeBSD.org>2025-05-25 02:47:05 +0200
commit3cc875416c55b3a5eb02cbfa3a2a29e5c665c87d (patch)
treed21848d1f3b5560d1de041e1721e85765a625b56
parentmath/spblas: build with clang, fix build on armv7 (diff)
math/levmar: 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 Approved by: portmgr (build fix blanket)
-rw-r--r--math/levmar/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/levmar/Makefile b/math/levmar/Makefile
index a327d9526398..605ea40aea41 100644
--- a/math/levmar/Makefile
+++ b/math/levmar/Makefile
@@ -26,6 +26,10 @@ OPENBLAS_USES= blaslapack:openblas
.include <bsd.port.pre.mk>
+# 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}}
+
PORTDOCS= README.txt
PORTEXAMPLES= lmdemo.c Makefile.demo
PLIST_FILES= include/levmar.h \