From 669b768f67d2373523a36e663121cecbd22429c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=BC=E5=95=B8=E9=9A=8F=E9=A3=8E?= Date: Wed, 17 Nov 2021 16:26:08 +0800 Subject: [PATCH] make go build use static-link mode depends changed! e.g. before: `header-file.h` and `shared-library.so` after: `header-file.h` and `archive-libraries.a` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 371b495..9011db2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -LDFLAGS="-X main.buildstamp=`date -u '+%s'` -X main.githash=`git rev-parse HEAD`" +LDFLAGS="-X main.buildstamp=`date -u '+%s'` -X main.githash=`git rev-parse HEAD` -linkmode 'external' -extldflags '-static'" all: get tunasync tunasynctl