Skip to content

Commit b618b50

Browse files
committed
makefile: build: set cgo to 0
1 parent a6903df commit b618b50

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,33 @@ build: build-ui
88

99
# build for Apple's OSX 64
1010
build-osx: build-ui
11-
GOOS=darwin GOARCH=amd64 go build -ldflags '-s -w' -o tob github.com/telkomdev/tob/cmd/tob
11+
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags '-s -w' -o tob github.com/telkomdev/tob/cmd/tob
1212

1313
# build for Apple's OSX 64 with Apple Chip
1414
build-osx-arm: build-ui
15-
GOOS=darwin GOARCH=arm64 go build -ldflags '-s -w' -o tob github.com/telkomdev/tob/cmd/tob
15+
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags '-s -w' -o tob github.com/telkomdev/tob/cmd/tob
1616

1717
# build for Linux 64
1818
build-linux: build-ui
1919
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
23-
GOOS=windows GOARCH=amd64 go build -ldflags '-s -w' -o tob.exe github.com/telkomdev/tob/cmd/tob
23+
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-s -w' -o tob.exe github.com/telkomdev/tob/cmd/tob
2424

2525
# Tob HTTP Agent
2626

2727
# build for Apple's OSX 64
2828
build-http-agent-osx:
29-
GOOS=darwin GOARCH=amd64 go build -ldflags '-s -w' -o tob-http-agent github.com/telkomdev/tob/cmd/tob-http-agent
29+
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags '-s -w' -o tob-http-agent github.com/telkomdev/tob/cmd/tob-http-agent
3030

3131
# build for Apple's OSX 64
3232
build-http-agent-osx-arm:
33-
GOOS=darwin GOARCH=arm64 go build -ldflags '-s -w' -o tob-http-agent github.com/telkomdev/tob/cmd/tob-http-agent
33+
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags '-s -w' -o tob-http-agent github.com/telkomdev/tob/cmd/tob-http-agent
3434

3535
# build for Linux 64
3636
build-http-agent-linux:
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
37+
CGO_ENABLED=0 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)