aboutsummaryrefslogtreecommitdiff
path: root/build.bash
diff options
context:
space:
mode:
authorzp2024-03-16 23:24:19 -0500
committerrfjakob2024-04-18 18:55:23 +0200
commitf5007b28c366d1a9671146710975679a154f30f8 (patch)
tree584d0a770c4cdc9545bd277cbd6273ca5a4ae30f /build.bash
parent7883d383d842707994b664f4d56ffbe833d3dc52 (diff)
Build with v2 extensions
Enables older CPUs (2008-2013) to take advantage of certain hardware accelerators. Closes #828
Diffstat (limited to 'build.bash')
-rwxr-xr-xbuild.bash3
1 files changed, 3 insertions, 0 deletions
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