treewide: Remove GO_PKG_LDFLAGS for stripping binaries 16518/head
authorJeffery To <jeffery.to@gmail.com>
Wed, 1 Sep 2021 22:36:01 +0000 (06:36 +0800)
committerJeffery To <jeffery.to@gmail.com>
Wed, 1 Sep 2021 22:36:01 +0000 (06:36 +0800)
commit1dd040f9ca8902d7940c254c1e543698a06ae8b3
treeb60aa6445647cac3a6b8306c011fbfa228ded549
parentb35c3984e1fdaddf1fac7d9915ea178bb919b47f
treewide: Remove GO_PKG_LDFLAGS for stripping binaries

The "-s -w" flags in GO_PKG_LDFLAGS tells the Go compiler to strip the
binaries it produces. Since the default Go package build process will
strip binaries when CONFIG_USE_STRIP or CONFIG_USE_SSTRIP are selected,
these flags are unnecessary.

When CONFIG_NO_STRIP is selected, these flags override the user's
intention of building unstripped packages.

This removes these flags for all relevant packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
net/kcptun/Makefile
net/nextdns/Makefile
net/restic-rest-server/Makefile
utils/restic/Makefile