Skip to content

Commit

Permalink
Create statically linked binaries (disable CGO)
Browse files Browse the repository at this point in the history
  • Loading branch information
sts committed Jul 10, 2023
1 parent 712034f commit c95e985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ endif
default: build

build:
GOARCH=$(ARCH) GOOS=$(OS) go build -v ${LDFLAGS} -o $(BINARY)_$(ARCH) cmd/coraza-spoa/main.go
GOARCH=$(ARCH) GOOS=$(OS) CGO_ENABLED=0 go build -v ${LDFLAGS} -o $(BINARY)_$(ARCH) cmd/coraza-spoa/main.go

clean:
rm -f $(BINARY)_amd64 $(BINARY)_arm64 $(BINARY)_386

0 comments on commit c95e985

Please sign in to comment.