mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-21 20:14:24 +00:00
Always disable CGO
This means even the native build architecture (amd64) will have statically linked binaries Fixes #39
This commit is contained in:
parent
c2428c871f
commit
7a96f37541
1
Makefile
1
Makefile
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user