another attempt at ldflags

This commit is contained in:
David Dworken
2022-04-08 22:45:49 -07:00
parent c42bb66e96
commit f2c6f86204
3 changed files with 6 additions and 4 deletions

4
scripts/client-ldflags Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
GIT_HASH=$(git rev-parse HEAD)
echo "-X main.GitCommit=$GIT_HASH -w -extldflags \"-static\""