Exclude hsm.go from all standalone builds (#154)

For standalone builds the HSM code is not used, so we can exclude it.
The resulting binary now no longer requires libc of a certain version to
be present.
This commit is contained in:
Arjan H
2025-02-11 19:11:21 +01:00
parent 4aa903e22f
commit a95028c45d
3 changed files with 4 additions and 3 deletions

View File

@@ -22,7 +22,8 @@ endif
# Build
#########################################
LDFLAGS := -ldflags='-w -X "main.standaloneVersion=$(VERSION)" -extldflags "-static"'
LDFLAGS := -ldflags='-w -X "main.standaloneVersion=$(VERSION)" -extldflags "-static"' \
-tags standalone
download:
$Q cd gui; \

View File

@@ -1,4 +1,4 @@
//go:build amd64
//go:build !standalone
package main

View File

@@ -1,4 +1,4 @@
//go:build arm64
//go:build standalone
package main