build: fix static embedding
This commit is contained in:
parent
eaa1c9397f
commit
7ed8364a13
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -16,8 +16,8 @@ deps:
|
|||
|
||||
.PHONY:
|
||||
build: deps
|
||||
CGO_ENABLED=$(CGO_ENABLED) GOARCH=amd64 GOOS=linux $(CC) $(CFLAGS) -o $(BUILD_DIR)/$(LINUX_BIN) -ldflags="$(LDFLAGS)" -gcflags="$(GCFLAGS)" -asmflags="$(ASMFLAGS)" ./cmd/main.go
|
||||
CGO_ENABLED=$(CGO_ENABLED) GOARCH=amd64 GOOS=linux $(CC) $(CFLAGS) -o $(BUILD_DIR)/$(LINUX_BIN) -ldflags="$(LDFLAGS)" -gcflags="$(GCFLAGS)" -asmflags="$(ASMFLAGS)" -tags=static_build ./cmd/
|
||||
|
||||
watch:
|
||||
test -f cmd/rice-box.go && rm cmd/rice-box.go
|
||||
test -f cmd/rice-box.go && rm cmd/rice-box.go || true
|
||||
gowatch -o build/app-live-linux-amd64 -args='./config.yaml' -p ./cmd/main.go
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue