Disable hardening build on mingw

Signed-off-by: Taiju Yamada <tyamada@bi.a.u-tokyo.ac.jp>
This commit is contained in:
Taiju Yamada 2024-03-11 12:14:50 +09:00 committed by Pablo de Lara
parent aaad73e15d
commit ea1288fc6a

View File

@ -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