mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Enable stack smash protection by default.
This commit is contained in:
parent
65bfdf7e3a
commit
8a7e662c31
1 changed files with 2 additions and 2 deletions
|
@ -124,9 +124,9 @@ endif
|
|||
DEFAULT_GENERIC_OPTLEVEL_BASE:=-Os -s
|
||||
DEFAULT_OPTLEVEL_FOR_BUILD:=$(DEFAULT_GENERIC_OPTLEVEL_BASE)
|
||||
ifeq ($(BUILD_IS_SORTIX),1)
|
||||
DEFAULT_OPTLEVEL_FOR_BUILD+=-fsanitize=undefined
|
||||
DEFAULT_OPTLEVEL_FOR_BUILD+=-fsanitize=undefined -fstack-protector-all
|
||||
endif
|
||||
DEFAULT_OPTLEVEL:=$(DEFAULT_GENERIC_OPTLEVEL_BASE)
|
||||
ifeq ($(HOST_IS_SORTIX),1)
|
||||
DEFAULT_OPTLEVEL+=-fsanitize=undefined
|
||||
DEFAULT_OPTLEVEL+=-fsanitize=undefined -fstack-protector-all
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue