File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ LDFLAGS_DEBUG='-checklinkname=0 -X $(IMPORT_PATH)/intra/core.Date=$(DATESTR) -X
1414# checklinkname to override runtime.secureMode; see: core/overreach.go
1515# github.com/golang/go/issues/69868
1616LDFLAGS='-checklinkname =0 -w -s -buildid= -X $(IMPORT_PATH ) /intra/core.Date=$(DATESTR ) -X $(IMPORT_PATH ) /intra/core.Commit=$(COMMIT_ID ) '
17- CGO_LDFLAGS =" $( CGO_LDFLAGS ) -s -w -Wl,-z,max-page-size=16384"
18- # same as above, but without -s -w so DWARF from C/CGO objects is preserved
19- # for llvm-objcopy extraction in the debugsymbols target
20- CGO_LDFLAGS_DEBUG ="$(CGO_LDFLAGS ) -Wl,-z,max-page-size=16384"
17+ # without -s -w so DWARF from C/CGO objects is preserved for llvm-objcopy
18+ # extraction in the debugsymbols target; must come before CGO_LDFLAGS :=
19+ CGO_LDFLAGS_DEBUG: =" $( CGO_LDFLAGS ) -Wl,-z,max-page-size=16384"
20+ CGO_LDFLAGS: ="$(CGO_LDFLAGS ) -s -w -Wl,-z,max-page-size=16384"
2121# build overlay json via recipe
2222BUILD_OVERLAY =$(BUILDDIR ) /overlay.json
2323
You can’t perform that action at this time.
0 commit comments