mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 22:53:43 +00:00
Merge pull request #2479 from jcvenegas/fix-2478
makefile: do not use LDFLAGS for extra kata flags.
This commit is contained in:
commit
2c0e8ff499
4
Makefile
4
Makefile
@ -465,7 +465,7 @@ BUILDFLAGS := -buildmode=pie
|
||||
|
||||
# whether stipping the binary
|
||||
ifeq ($(STRIP),yes)
|
||||
LDFLAGS := -ldflags "-w -s"
|
||||
KATA_LDFLAGS := -ldflags "-w -s"
|
||||
endif
|
||||
|
||||
# Return non-empty string if specified directory exists
|
||||
@ -495,7 +495,7 @@ containerd-shim-v2: $(SHIMV2_OUTPUT)
|
||||
netmon: $(NETMON_TARGET_OUTPUT)
|
||||
|
||||
$(NETMON_TARGET_OUTPUT): $(SOURCES) VERSION
|
||||
$(QUIET_BUILD)(cd $(NETMON_DIR) && go build $(BUILDFLAGS) -o $@ -ldflags "-X main.version=$(VERSION)" $(LDFLAGS))
|
||||
$(QUIET_BUILD)(cd $(NETMON_DIR) && go build $(BUILDFLAGS) -o $@ -ldflags "-X main.version=$(VERSION)" $(KATA_LDFLAGS))
|
||||
|
||||
runtime: $(TARGET_OUTPUT) $(CONFIGS)
|
||||
.DEFAULT: default
|
||||
|
Loading…
Reference in New Issue
Block a user