Skip to content

Commit

Permalink
Disable hardening build on mingw
Browse files Browse the repository at this point in the history
Signed-off-by: Taiju Yamada <[email protected]>
  • Loading branch information
cielavenir committed Mar 29, 2024
1 parent 7b30857 commit 8cfe17e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@ 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
ASFLAGS_ += -DINTEL_CET_ENABLED
LDFLAGS += -Wl,-z,ibt -Wl,-z,shstk -Wl,-z,cet-report=error
endif
endif
endif

ifeq ($(arch),mingw)
CC=x86_64-w64-mingw32-gcc
Expand Down

0 comments on commit 8cfe17e

Please sign in to comment.