Fix #I4KI81 reason: modify kata-containers version and update it to 1.11.1 Signed-off-by: holyfei <yangfeiyu20092010@163.com>
30 lines
778 B
Diff
30 lines
778 B
Diff
From 2c5cbf2ca9624d5443ad334a8337cb58d57573b2 Mon Sep 17 00:00:00 2001
|
|
From: jikui <jikui2@huawei.com>
|
|
Date: Thu, 18 Mar 2021 15:34:07 +0800
|
|
Subject: [PATCH] kata-proxy: modify make flags
|
|
|
|
reason: modify make flags
|
|
|
|
Signed-off-by: jikui <jikui2@huawei.com>
|
|
---
|
|
Makefile | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index a1b3eee..07e9ba8 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -33,6 +33,9 @@ ifeq ($(STRIP),yes)
|
|
endif
|
|
|
|
$(TARGET): $(SOURCES) $(VERSION_FILE)
|
|
+ CGO_CFLAGS="-fstack-protector-strong -fPIE -D_FORTIFY_SOURCE=2 -O2" \
|
|
+ CGO_LDFLAGS_ALLOW="-Wl,-z,relro,-z,now" \
|
|
+ CGO_LDFLAGS="-Wl,-z,relro,-z,now -Wl,-z,noexecstack" \
|
|
go build $(BUILDFLAGS) -o $@ -ldflags "-X main.version=$(VERSION_COMMIT) $(KATA_LDFLAGS)"
|
|
|
|
test:
|
|
--
|
|
2.25.1
|
|
|