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