26 lines
865 B
Diff
26 lines
865 B
Diff
|
|
From a52f67f2dbdf1b20b17061c695049e9ffec795c9 Mon Sep 17 00:00:00 2001
|
||
|
|
From: luofeng <luofeng13@huawei.com>
|
||
|
|
Date: Tue, 2 Apr 2024 20:00:04 +0800
|
||
|
|
Subject: [PATCH] fix go build ref cldflags
|
||
|
|
|
||
|
|
---
|
||
|
|
Makefile | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/Makefile b/Makefile
|
||
|
|
index 405bcc3..8a29fb1 100644
|
||
|
|
--- a/Makefile
|
||
|
|
+++ b/Makefile
|
||
|
|
@@ -23,7 +23,7 @@ SYSTEMD_DIR = $(DESTDIR)/usr/lib/systemd/system
|
||
|
|
LOG_DIR := $(DESTDIR)/var/log/secpaver
|
||
|
|
|
||
|
|
BUILDFLAGS := -trimpath
|
||
|
|
-LDFLAGS := -w -s -buildid=IdBySecPaver -linkmode=external -extldflags=-static -extldflags=-zrelro -extldflags=-Wl,-z,now $(LDFLAGS)
|
||
|
|
+LDFLAGS := -w -s -buildid=IdBySecPaver -linkmode=external -extldflags=-static -extldflags=-zrelro -extldflags=-Wl,-z,now
|
||
|
|
|
||
|
|
ifeq ($(shell go help mod >/dev/null 2>&1 && echo true), true)
|
||
|
|
export GO111MODULE=on
|
||
|
|
--
|
||
|
|
2.19.1
|
||
|
|
|