25 lines
937 B
Diff
25 lines
937 B
Diff
From a0b5196a28035fcb7e3d700409afd045b1bd2263 Mon Sep 17 00:00:00 2001
|
|
From: liyunfei <liyunfei33@huawei.com>
|
|
Date: Mon, 20 Nov 2023 16:57:14 +0800
|
|
Subject: [PATCH] fix cflags for clang build
|
|
|
|
---
|
|
Makefile | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index 0d6bd01..caa5de3 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -22,7 +22,7 @@ BUILDTAGS := seccomp
|
|
BUILDFLAGS := -tags "$(BUILDTAGS)"
|
|
TMPDIR := /tmp/isula_build_tmpdir
|
|
BEFLAG := -tmpdir=${TMPDIR}
|
|
-SAFEBUILDFLAGS := -buildid=IdByIsula -buildmode=pie -extldflags=-ftrapv -extldflags=-zrelro -extldflags=-znow $(BEFLAG) $(LDFLAGS)
|
|
+SAFEBUILDFLAGS := -buildid=IdByIsula -buildmode=pie -extldflags=-ftrapv -extldflags=-Wl,-z,relro -extldflags=-Wl,-z,now $(BEFLAG) $(LDFLAGS)
|
|
STATIC_LDFLAGS := -linkmode=external -extldflags "-static-pie -Wl,-z,now"
|
|
|
|
IMAGE_BUILDARGS := $(if $(http_proxy), --build-arg http_proxy=$(http_proxy))
|
|
--
|
|
2.33.0
|
|
|