diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-02-07 11:10:31 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-02-15 15:34:03 +0100 |
commit | 0af2762cbf439507c4a31f538f2e476a8f5e118d (patch) | |
tree | a6edb1e88f3e4ccb3e7d29c9fac4e54c2ac59090 /docs/libnm | |
parent | 23e4ef50927a24f599bfe13b6059a3b6a78d1f3c (diff) | |
download | NetworkManager-0af2762cbf439507c4a31f538f2e476a8f5e118d.tar.gz |
build: allow building with address sanitizer only for executables
Shared libraries built with sanitizers are a bit inconvenient to use
because they require that any application linking to them is run with
libasan preloaded using LD_PRELOAD. This limitation makes the
sanitizer support less useful because applications will refuse to
start unless there is a special environment variable set.
Let's turn the --enable-address-sanitizer configure flag into
--with-address-sanitizer=yes|no|exec so that is possible to enable
asan only for executables.
Diffstat (limited to 'docs/libnm')
-rw-r--r-- | docs/libnm/Makefile.am | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/libnm/Makefile.am b/docs/libnm/Makefile.am index 89784967fa..c2bcff1be5 100644 --- a/docs/libnm/Makefile.am +++ b/docs/libnm/Makefile.am @@ -72,11 +72,13 @@ GTKDOC_CFLAGS = \ -I$(top_srcdir)/libnm \ -I$(top_builddir)/libnm \ -DNM_VERSION_MIN_REQUIRED=NM_VERSION_0_9_8 \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + $(SANITIZER_EXEC_CFLAGS) GTKDOC_LIBS = \ $(top_builddir)/libnm/libnm.la \ - $(GLIB_LIBS) + $(GLIB_LIBS) \ + $(SANITIZER_EXEC_LDFLAGS) # include common portion ... |