]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Build: Add menuselect options for using compiler sanitizers 17/1417/1
authorIvan Poddubny <ivan.poddubny@gmail.com>
Sat, 10 Oct 2015 20:20:55 +0000 (23:20 +0300)
committerIvan Poddubny <ivan.poddubny@gmail.com>
Mon, 12 Oct 2015 18:23:13 +0000 (21:23 +0300)
commita0bb7b50ae25fb2c6c222392214e761c0c5b1ec4
tree718f8652aaff9f0e9269e60ffc215557582d95d6
parent332ee0f175560effde1b6522346e737217503751
Build: Add menuselect options for using compiler sanitizers

This patch adds menuselect options for building Asterisk with
various sanitizers provided by gcc and clang.

When one of *SANITIZER flags is set in menuselect, the appropriate
option is added to CFLAGS ad LDFLAGS for the build.

Information on sanitizers in the project wiki:
https://github.com/google/sanitizers/wiki

GCC Manual:
https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html

Clang Compiler User's Manual:
http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation

ASTERISK-24718 #close
Reported by: Badalian Vyacheslav

Change-Id: Iafa51b792b7bcb20e848b99d16cf362d08590fa0
Makefile.rules
build_tools/cflags.xml