From 7a96f37541d3cd28266e856ae79c6950f9f95e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20L=2E=20Hansen?= Date: Sat, 27 Aug 2022 00:33:35 -0700 Subject: [PATCH] Always disable CGO This means even the native build architecture (amd64) will have statically linked binaries Fixes #39 --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 1776901..6570620 100644 --- a/Makefile +++ b/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}