From 1eb9a94d2cd9016be921d38e57bfb88f6472ad76 Mon Sep 17 00:00:00 2001 From: Vasyl Gello Date: Thu, 25 Jul 2024 06:49:06 +0300 Subject: [PATCH] Try to use netgo,osusergo,static for static builds Signed-off-by: Vasyl Gello --- build | 1 + 1 file changed, 1 insertion(+) diff --git a/build b/build index 4a63f46..fc9e183 100755 --- a/build +++ b/build @@ -21,6 +21,7 @@ do r) ARGS="$ARGS -race";; o) ARGS="$ARGS -o $OPTARG";; p) ARGS="$ARGS -buildmode=pie";; + s) ARGS="$ARGS -tags netgo,osusersgo,static" LDFLAGS="$LDFLAGS -extldflags '-static'";; esac done