From ea1288fc6a5d14e8b1479f18952cb7cbd731d261 Mon Sep 17 00:00:00 2001 From: Taiju Yamada Date: Mon, 11 Mar 2024 12:14:50 +0900 Subject: [PATCH] Disable hardening build on mingw Signed-off-by: Taiju Yamada --- make.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make.inc b/make.inc index ff494de..a961e91 100644 --- a/make.inc +++ b/make.inc @@ -76,8 +76,8 @@ ARFLAGS_win64 = -out:$@ ASFLAGS_mingw = -f win64 ARFLAGS_mingw = cr $@ +ifneq ($(arch),mingw) LDFLAGS_so = -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-soname,$(soname) - ifeq ($(shell uname),Linux) ifeq ($(host_cpu),x86_64) CFLAGS_ += -fcf-protection=full @@ -85,6 +85,7 @@ ifeq ($(host_cpu),x86_64) LDFLAGS += -Wl,-z,ibt -Wl,-z,shstk -Wl,-z,cet-report=error endif endif +endif ifeq ($(arch),mingw) CC=x86_64-w64-mingw32-gcc