aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-18 16:39:04 +0200
committerJulien Dessaux2021-09-18 16:39:04 +0200
commitfb3bacc48e62cb871bf937f48c4743aeb8696e98 (patch)
treefdb32d39ea0c58f2efb6849564175b7b0eae01f1
parentUpdated dependencies (diff)
downloadtrains-fb3bacc48e62cb871bf937f48c4743aeb8696e98.tar.gz
trains-fb3bacc48e62cb871bf937f48c4743aeb8696e98.tar.bz2
trains-fb3bacc48e62cb871bf937f48c4743aeb8696e98.zip
Updated static build instructions
Diffstat (limited to '')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index ce4ba8d..3e81852 100644
--- a/README.md
+++ b/README.md
@@ -65,12 +65,12 @@ go build ./cmd/trains-webui/
For a release build, use :
```
-go build -ldflags="-s -w" ./cmd/trains-webui/
+go build -ldflags '-s -w -extldflags "-static"' ./cmd/trains-webui/
```
To cross-compile for another os or architecture, use :
```
-GOOS=openbsd GOARCH=amd64 go build -ldflags="-s -w" ./cmd/trains-webui/
+GOOS=openbsd GOARCH=amd64 go build -ldflags='-s -w -extldflags "-static"' ./cmd/trains-webui/
```
## Design Choices