mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
doc/README: fix ldflags invocation in faq
This commit is contained in:
parent
aec8e159d5
commit
a6f0a3cca5
@ -31,7 +31,7 @@ You must also meet your Qt license obligations.
|
||||
|
||||
### Q1. Why are the binaries so big?
|
||||
|
||||
Make sure to compile with `go build "-ldflags -s -w"`. This reduces the `helloworld` example from 43MB to 6MB.
|
||||
Make sure to compile with `go build -ldflags "-s -w"`. This reduces the `helloworld` example from 43MB to 6MB.
|
||||
|
||||
Then, it's possible to reduce the size further with `upx --best` to 2MB or `upx --lzma` to 1.4MB.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user