Skip to content

Commit be0a92d

Browse files
committed
makefile: add build with CGO
1 parent e820065 commit be0a92d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ build-osx-arm: build-ui
1616

1717
# build for Linux 64
1818
build-linux: build-ui
19-
GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o tob github.com/telkomdev/tob/cmd/tob
19+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o tob github.com/telkomdev/tob/cmd/tob
2020

2121
# build for Windows 64
2222
build-win: build-ui
@@ -34,7 +34,7 @@ build-http-agent-osx-arm:
3434

3535
# build for Linux 64
3636
build-http-agent-linux:
37-
GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o tob-http-agent github.com/telkomdev/tob/cmd/tob-http-agent
37+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o tob-http-agent github.com/telkomdev/tob/cmd/tob-http-agent
3838

3939
test:
4040
go test ./...

0 commit comments

Comments
 (0)