git: f90704ddb5ae - main - filesystems/amazon-efs-utils: Fix build on aarch64

From: Olivier Cochard <olivier_at_FreeBSD.org>
Date: Sun, 20 Sep 2026 07:53:55 UTC
The branch main has been updated by olivier:

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

commit f90704ddb5aefd7bbcca133dd8bb81ccc8b0e6c3
Author:     Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2026-09-20 07:09:47 +0000
Commit:     Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2026-09-20 07:51:03 +0000

    filesystems/amazon-efs-utils: Fix build on aarch64
    
    Sponsored by:   Netflix
---
 filesystems/amazon-efs-utils/Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/filesystems/amazon-efs-utils/Makefile b/filesystems/amazon-efs-utils/Makefile
index 3b9c28e067e4..6350896c9afb 100644
--- a/filesystems/amazon-efs-utils/Makefile
+++ b/filesystems/amazon-efs-utils/Makefile
@@ -84,4 +84,14 @@ post-install:
 	${MKDIR} ${STAGEDIR}/var/log/amazon/efs
 	${MKDIR} ${STAGEDIR}/var/run/efs
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# The FIPS module exceeds the 1MiB adr reach on aarch64: delocate rewrites
+# adrp into adr, and the assembler rejects the out-of-range fixups.
+# OPENSSL_SMALL drops the precomputed curve25519 and P-256 tables, which
+# brings the module back into reach at the cost of slower ECC.
+.if ${ARCH} == aarch64
+MAKE_ENV+=	AWS_LC_FIPS_SYS_SMALL=1
+.endif
+
+.include <bsd.port.post.mk>