From 8a4487f7a920b31c8bf5b43fcba3fe78f8154312 Mon Sep 17 00:00:00 2001 From: George Brighton Date: Sat, 6 Apr 2024 23:04:16 +0100 Subject: [PATCH] Do not inadvertently build a dynamic binary --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ce3a51b..e7b53bb 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,15 @@ OUT := plexbackup -# ensure these are set outside CI context +# Ensure these are set outside CI context. GOOS := $(shell go env GOOS) GOARCH := $(shell go env GOARCH) GOARM := $(shell go env GOARM) VERSION := $(shell git describe --always --tags --dirty) +# We want to ignore any C/C++ toolchain on dev machines. +export CGO_ENABLED = 0 + arm := $(GOARM) ifneq ($(arm),) arm := v$(arm)