From 03e3fe66b4b53b1dec4ce21b2b10800910c694db Mon Sep 17 00:00:00 2001 From: knox Date: Fri, 3 Nov 2023 14:21:42 +0100 Subject: [PATCH] disable CGO in makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 173131cf..47c4b05b 100644 --- a/Makefile +++ b/Makefile @@ -28,13 +28,13 @@ factorio-server-manager-linux: @echo "Building Backend - Linux" @mkdir -p factorio-server-manager @cd src; \ - CGO_ENABLED=1 GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o ../factorio-server-manager/factorio-server-manager . + CGO_ENABLED=0 GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o ../factorio-server-manager/factorio-server-manager . factorio-server-manager-windows: @echo "Building Backend - Windows" @mkdir -p factorio-server-manager @cd src; \ - GO111MODULE=on GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build -ldflags="-extldflags=-static" -o ../factorio-server-manager/factorio-server-manager.exe . + GO111MODULE=on GOOS=windows GOARCH=amd64 CGO_ENABLED=0 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build -ldflags="-extldflags=-static" -o ../factorio-server-manager/factorio-server-manager.exe . gen_release: build/factorio-server-manager-linux.zip build/factorio-server-manager-windows.zip @echo "Done"