diff options
author | Julien Dessaux | 2021-09-18 16:39:04 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-09-18 16:39:04 +0200 |
commit | fb3bacc48e62cb871bf937f48c4743aeb8696e98 (patch) | |
tree | fdb32d39ea0c58f2efb6849564175b7b0eae01f1 | |
parent | Updated dependencies (diff) | |
download | trains-fb3bacc48e62cb871bf937f48c4743aeb8696e98.tar.gz trains-fb3bacc48e62cb871bf937f48c4743aeb8696e98.tar.bz2 trains-fb3bacc48e62cb871bf937f48c4743aeb8696e98.zip |
Updated static build instructions
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |