]> git.ipfire.org Git - thirdparty/lldpd.git/commit
build: let configure tell us if we have address sanitizer
authorVincent Bernat <vincent@bernat.im>
Fri, 18 Mar 2016 19:05:03 +0000 (20:05 +0100)
committerVincent Bernat <vincent@bernat.im>
Fri, 18 Mar 2016 19:21:31 +0000 (20:21 +0100)
commitdc37bc8d4d8928d9330a027112cf0427d490ac3d
tree24baa79929f2b95db2bbb075da6f3ad66be26c15
parent4f9d887aa0bbd1cf2579fdff42f8a7b3c1f13f98
build: let configure tell us if we have address sanitizer

We cannot really rely on __has_feature or __ADDRESS_SANITIZER__ in code
since we are mostly interested in the leak sanitizer and there is
neither a feature nor a macro for that. Early version of GCC have the
address sanitizer, but not the leak sanitizer. We don't support this
configuration, but we need to build correctly either way. So, the user
is expected to enable address sanitizers only on configuration
supporting also the leak sanitizer.
configure.ac
src/client/client.h