From cb587f370f5cd9caf57c8c4364392f5513435b21 Mon Sep 17 00:00:00 2001 From: luofeng Date: Mon, 4 Mar 2024 15:49:13 +0800 Subject: [PATCH] support clang build --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 858346a..405bcc3 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=-znow $(LDFLAGS) +LDFLAGS := -w -s -buildid=IdBySecPaver -linkmode=external -extldflags=-static -extldflags=-zrelro -extldflags=-Wl,-z,now $(LDFLAGS) ifeq ($(shell go help mod >/dev/null 2>&1 && echo true), true) export GO111MODULE=on -- 2.19.1