Skip to content

Commit ea1288f

Browse files
cielavenirpablodelara
authored andcommitted
Disable hardening build on mingw
Signed-off-by: Taiju Yamada <[email protected]>
1 parent aaad73e commit ea1288f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

make.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,16 @@ ARFLAGS_win64 = -out:$@
7676
ASFLAGS_mingw = -f win64
7777
ARFLAGS_mingw = cr $@
7878

79+
ifneq ($(arch),mingw)
7980
LDFLAGS_so = -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-soname,$(soname)
80-
8181
ifeq ($(shell uname),Linux)
8282
ifeq ($(host_cpu),x86_64)
8383
CFLAGS_ += -fcf-protection=full
8484
ASFLAGS_ += -DINTEL_CET_ENABLED
8585
LDFLAGS += -Wl,-z,ibt -Wl,-z,shstk -Wl,-z,cet-report=error
8686
endif
8787
endif
88+
endif
8889

8990
ifeq ($(arch),mingw)
9091
CC=x86_64-w64-mingw32-gcc

0 commit comments

Comments
 (0)