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`
This commit is contained in:
呼啸随风 2021-11-17 16:26:08 +08:00 committed by GitHub
parent 3809df6cfb
commit 669b768f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 all: get tunasync tunasynctl