Skip to content

Commit 359d0e3

Browse files
author
Youbing Li
committed
Fixes 77527 - Update Makefile about the usage of building unstripped binaries
1 parent 014a2d2 commit 359d0e3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build/root/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ define ALL_HELP_INFO
7878
# make
7979
# make all
8080
# make all WHAT=cmd/kubelet GOFLAGS=-v
81-
# make all GOGCFLAGS="-N -l"
82-
# Note: Use the -N -l options to disable compiler optimizations an inlining.
83-
# Using these build options allows you to subsequently use source
84-
# debugging tools like delve.
81+
# make all GOLDFLAGS=""
82+
# Note: Specify GOLDFLAGS as an empty string for building unstripped binaries, which allows
83+
# you to use code debugging tools like delve. When GOLDFLAGS is unspecified, it defaults
84+
# to "-s -w" which strips debug information. Other flags that can be used for GOLDFLAGS
85+
# are documented at https://golang.org/cmd/link/
8586
endef
8687
.PHONY: all
8788
ifeq ($(PRINT_HELP),y)

0 commit comments

Comments
 (0)