about summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorLouis Opter <louis@opter.org>2023-12-15 09:31:00 -0800
committerGitHub <noreply@github.com>2023-12-15 09:31:00 -0800
commit2e3c2705b98351bc95d01d42ab535f3dc230c593 (patch)
treebc50ff8bcb07f12b1ee9c98b3ccdc3d2aeb7bf3a /doc/languages-frameworks
parentd17c5a31dc5bba829599ac044b5903f5e21f36fd (diff)
downloadnixlib-2e3c2705b98351bc95d01d42ab535f3dc230c593.tar
nixlib-2e3c2705b98351bc95d01d42ab535f3dc230c593.tar.gz
nixlib-2e3c2705b98351bc95d01d42ab535f3dc230c593.tar.bz2
nixlib-2e3c2705b98351bc95d01d42ab535f3dc230c593.tar.lz
nixlib-2e3c2705b98351bc95d01d42ab535f3dc230c593.tar.xz
nixlib-2e3c2705b98351bc95d01d42ab535f3dc230c593.tar.zst
nixlib-2e3c2705b98351bc95d01d42ab535f3dc230c593.zip
Remove "-s" and "-w" from the ldflags example
The go linker `-s` and `-w` flags respectively are for:

- Omit the symbol table and debug information.
- Omit the DWARF symbol table.

Those actions should be delegated to the fixup build phase instead.

See: https://discourse.nixos.org/t/why-do-so-many-go-packages-use-s-w-in-their-ldflags-it-breaks-dontfixup-dontstrip/36843
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r--doc/languages-frameworks/go.section.md1
1 files changed, 0 insertions, 1 deletions
diff --git a/doc/languages-frameworks/go.section.md b/doc/languages-frameworks/go.section.md
index 884ebcebf7f2..7f069c687ff1 100644
--- a/doc/languages-frameworks/go.section.md
+++ b/doc/languages-frameworks/go.section.md
@@ -132,7 +132,6 @@ Arguments to pass to the Go linker tool via the `-ldflags` argument of `go build
 
 ```nix
   ldflags = [
-    "-s" "-w"
     "-X main.Version=${version}"
     "-X main.Commit=${version}"
   ];