Add wwbuild build tags

These tags are required by github.com/containers/image/v5 to have a native go
implementation.
This commit is contained in:
Ian Kaneshiro
2020-11-06 16:39:08 -08:00
parent 70c73a84c3
commit 0cf0a9344c

View File

@@ -1,5 +1,7 @@
.PHONY: all
WW_BUILD_GO_BUILD_TAGS := containers_image_openpgp containers_image_ostree
all: warewulfd wwbuild wwclient
files: all
@@ -27,7 +29,7 @@ warewulfd:
cd cmd/warewulfd; go build -o ../../warewulfd
wwbuild:
cd cmd/wwbuild; go build -o ../../wwbuild
cd cmd/wwbuild; go build -tags "$(WW_BUILD_GO_BUILD_TAGS)" -o ../../wwbuild
wwclient:
cd cmd/wwclient; CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags -static' -o ../../wwclient