Hi,
I have a program written in go that I am trying to make a port for. The build command should be:
would this in the port Makefile do the same:
any help and comments welcome
cheers !
I have a program written in go that I am trying to make a port for. The build command should be:
Code:
go generate ./...
CGO_ENABLED=1 go build -o bin/ -tags='netgo timetzdata' -trimpath -a -ldflags '-s -w' ./cmd/hostd
Code:
USES= go:modules
GO_MODULE= go.sia.tech/hostd
GO_TARGET= ./cmd/hostd
GO_BUILDFLAGS+= -tags='netgo timetzdata' -trimpath -a -ldflags '-s -w'
GO_ENV+= "CGO_ENABLED=1"
cheers !