From 359d0e31ea020920478b397ff66d33fad491c1c9 Mon Sep 17 00:00:00 2001 From: Youbing Li Date: Tue, 7 May 2019 10:39:41 -0400 Subject: [PATCH] Fixes 77527 - Update Makefile about the usage of building unstripped binaries --- build/root/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build/root/Makefile b/build/root/Makefile index c079444b589..f40fec8abc9 100644 --- a/build/root/Makefile +++ b/build/root/Makefile @@ -78,10 +78,11 @@ define ALL_HELP_INFO # make # make all # make all WHAT=cmd/kubelet GOFLAGS=-v -# make all GOGCFLAGS="-N -l" -# Note: Use the -N -l options to disable compiler optimizations an inlining. -# Using these build options allows you to subsequently use source -# debugging tools like delve. +# make all GOLDFLAGS="" +# Note: Specify GOLDFLAGS as an empty string for building unstripped binaries, which allows +# you to use code debugging tools like delve. When GOLDFLAGS is unspecified, it defaults +# to "-s -w" which strips debug information. Other flags that can be used for GOLDFLAGS +# are documented at https://golang.org/cmd/link/ endef .PHONY: all ifeq ($(PRINT_HELP),y)