mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
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
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user