aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2022-01-30 17:29:49 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2022-01-30 17:29:49 +0000
commit3d0da7220ca950600c5ddaf70797c27b00803a5c (patch)
tree42f6e9957567a7672891bffc0bf7501d729703fa
parentcf87b68f594f71db1ea49d9ac3c1a28a430b5456 (diff)
downloadports-3d0da7220ca950600c5ddaf70797c27b00803a5c.tar.gz
ports-3d0da7220ca950600c5ddaf70797c27b00803a5c.zip
archivers/7-zip: set CFLAGS to fix build on aarch64
The code will use CRC instructions at runtime if available. PR: 260329
-rw-r--r--archivers/7-zip/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/archivers/7-zip/Makefile b/archivers/7-zip/Makefile
index 8a7f59629053..eb16a7051cae 100644
--- a/archivers/7-zip/Makefile
+++ b/archivers/7-zip/Makefile
@@ -24,6 +24,7 @@ CPE_VENDOR= 7-zip
MAKEFILE= ../../cmpl_clang.mak
MAKE_ARGS= LOCAL_FLAGS="${CFLAGS}" \
LOCAL_LIBS="${LIBS} -lsysinfo"
+CFLAGS_aarch64?= -march=armv8-a+crc+crypto
NO_WRKSUBDIR= yes
BUILD_WRKSRC= ${WRKSRC}/CPP/7zip/Bundles/Alone2