aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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