diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2016-04-04 21:30:43 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-06-03 22:19:38 +0200 |
commit | 01540cf1d33ece8ebe0edcace0801c8de07e0d0d (patch) | |
tree | 0b5a7786458f4df0e78511d8297e0fe39c13beae /libnm-util/Makefile.am | |
parent | b5efd22c14d127de330f5e20ec7740256dd25afa (diff) | |
download | NetworkManager-01540cf1d33ece8ebe0edcace0801c8de07e0d0d.tar.gz |
build: add options to compile with address/undefined sanitizers
This adds two new options to the configure scripts to compile NM,
clients and libraries with the address and undefined-behavior
sanitizers available in recent GCC versions. Clang is not supported at
moment.
Diffstat (limited to 'libnm-util/Makefile.am')
-rw-r--r-- | libnm-util/Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm-util/Makefile.am b/libnm-util/Makefile.am index 8f51fc37c7..0d5a0d46c1 100644 --- a/libnm-util/Makefile.am +++ b/libnm-util/Makefile.am @@ -169,6 +169,10 @@ INTROSPECTION_GIRS = INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) +# Pass SANITIZER_ENV where a command that uses built libraries is +# executed, to suppress possible errors +INTROSPECTION_SCANNER_ENV = $(SANITIZER_ENV) + if HAVE_INTROSPECTION introspection_sources = $(libnm_util_include_HEADERS) $(nodist_libnm_util_include_HEADERS) $(libnm_util_la_csources) |