Always disable CGO

This means even the native build architecture (amd64) will have
statically linked binaries

Fixes #39
This commit is contained in:
Søren L. Hansen 2022-08-27 00:33:35 -07:00
parent c2428c871f
commit 7a96f37541
1 changed files with 1 additions and 0 deletions

View File

@ -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}