From ad46af9168b94ff3fe84da08498eceaa6c61f0ad Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sun, 24 Oct 2021 17:43:30 +0200 Subject: [PATCH] docs/librclone: note that adding -ldflags -s to the build command will reduce size of library file --- librclone/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/librclone/README.md b/librclone/README.md index a95563209..63a2f7c73 100644 --- a/librclone/README.md +++ b/librclone/README.md @@ -33,6 +33,10 @@ The library will depend on `libdl` and `libpthread` on Linux/macOS, unless linking with a C standard library where their functionality is integrated, which is the case for glibc version 2.34 and newer. +You may add arguments `-ldflags -s` to make the library file smaller. This will +omit symbol table and debug information, reducing size by about 25% on Linux and +50% on Windows. + ### Documentation For documentation see the Go documentation for: