From 946490cab077a5ccc1e2139f0a423a11c14d3e2d Mon Sep 17 00:00:00 2001 From: Steven Tang Date: Thu, 8 Jul 2021 03:03:40 +0000 Subject: [PATCH] fix: segmentation fault on arm64 image (#311) Resolves #310 --- auth_server/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_server/Makefile b/auth_server/Makefile index 483ee52d..120d1a89 100644 --- a/auth_server/Makefile +++ b/auth_server/Makefile @@ -8,7 +8,7 @@ BUILD_ID ?= $(shell go run ./gen_version.go | awk '{print $$2}') all: build build: - go build -v -ldflags="-X 'main.Version=${VERSION}' -X 'main.BuildID=${BUILD_ID}'" + go build -v -ldflags="-extldflags '-static' -X 'main.Version=${VERSION}' -X 'main.BuildID=${BUILD_ID}'" auth_server: @echo