From a6002ee5cfefd4abb5c51941a6f9d451b63a7f30 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Thu, 10 Nov 2022 17:22:25 +0800 Subject: [PATCH] kcptun: 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 --- net/kcptun/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/net/kcptun/Makefile b/net/kcptun/Makefile index c90bef1c..ddb9935d 100644 --- a/net/kcptun/Makefile +++ b/net/kcptun/Makefile @@ -19,7 +19,6 @@ PKG_USE_MIPS16:=0 GO_PKG:=github.com/xtaci/kcptun -GO_PKG_LDFLAGS:=-s -w GO_PKG_LDFLAGS_X:=main.VERSION=$(PKG_VERSION) include $(INCLUDE_DIR)/package.mk