mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-18 04:53:57 +01:00
defs-dist.mk: Support USE_STACK_PROTECTOR and USE_STACK_CHECKER
Add support for make variables USE_STACK_PROTECTOR and USE_STACK_CHECKER Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
bc7da6906e
commit
ea02655437
3 changed files with 18 additions and 3 deletions
15
make/defs.mk
15
make/defs.mk
|
|
@ -841,8 +841,19 @@ ifeq ($(USE_MCHECK),true)
|
|||
endif
|
||||
|
||||
ifeq ($(USE_STACK_PROTECTOR),true)
|
||||
BUILD_CFLAGS+= -fstack-protector-all
|
||||
# BUILD_CFLAGS+= -fstack-protector
|
||||
BUILD_CFLAGS += -fstack-protector-all
|
||||
BUILD_CPPFLAGS += -fstack-protector-all
|
||||
# BUILD_CFLAGS += -fstack-protector
|
||||
endif
|
||||
|
||||
ifeq ($(USE_STACK_CHECKER),true)
|
||||
ifeq "$(COMPILER_SUITE)" "clang"
|
||||
BUILD_CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
BUILD_CPPFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
BUILD_LDFLAGS += -fsanitize=address
|
||||
else
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
ifeq ($(USE_DBMALLOC),true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue