mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 10:19:34 +00:00
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:
3
Makefile
3
Makefile
@@ -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; \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build amd64
|
||||
//go:build !standalone
|
||||
|
||||
package main
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build arm64
|
||||
//go:build standalone
|
||||
|
||||
package main
|
||||
|
||||
Reference in New Issue
Block a user