From f5007b28c366d1a9671146710975679a154f30f8 Mon Sep 17 00:00:00 2001 From: zp Date: Sat, 16 Mar 2024 23:24:19 -0500 Subject: Build with v2 extensions Enables older CPUs (2008-2013) to take advantage of certain hardware accelerators. Closes #828 --- build.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.bash b/build.bash index 5e95c3e..ffdd307 100755 --- a/build.bash +++ b/build.bash @@ -85,6 +85,9 @@ if [[ -n ${LDFLAGS:-} ]] ; then GO_LDFLAGS="$GO_LDFLAGS \"-extldflags=$LDFLAGS\"" fi +# Set GOAMD64 version to v2 +export GOAMD64=v2 + # Actual "go build" call for gocryptfs go build "-ldflags=$GO_LDFLAGS" "$@" # Additional binaries -- cgit v1.2.3