Skip to content

Commit

Permalink
Always disable CGO
Browse files Browse the repository at this point in the history
This means even the native build architecture (amd64) will have
statically linked binaries

Fixes #39
  • Loading branch information
sorenisanerd committed Aug 27, 2022
1 parent c2428c8 commit 7a96f37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ GIT_COMMIT = `git rev-parse HEAD | cut -c1-7`
VERSION = $(shell git describe --tags)
BUILD_OPTIONS = -ldflags "-X main.Version=$(VERSION)"
WEBPACK_MODE = production
export CGO_ENABLED=0

gotty: main.go assets server/*.go webtty/*.go backend/*.go Makefile
go build ${BUILD_OPTIONS}
Expand Down

0 comments on commit 7a96f37

Please sign in to comment.