summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-02 20:36:20 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 21:30:42 +0200
commitdbac691da646e624addc8f3ed5e744f9d3f8d69f (patch)
tree59b52a11b02a5ce51ba102716c9c6a337193a04c /Makefile.am
parentbuild: make pkgconfig configure output useful (diff)
downloadfrr-dbac691da646e624addc8f3ed5e744f9d3f8d69f.tar.xz
frr-dbac691da646e624addc8f3ed5e744f9d3f8d69f.zip
build: fix & clean up *SAN flags
ASAN/MSAN/TSAN flags need to be in CFLAGS and LDFLAGS; the latter links the correct compiler-dependent library. Also, the configure switch was broken (--disable-... would enable the sanitizer.) Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index b4d38e69a..303881b07 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,14 +4,16 @@ AUTOMAKE_OPTIONS = subdir-objects 1.12
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = \
- @ASAN_FLAGS@ @TSAN_FLAGS@ @MSAN_FLAGS@ \
- $(WERROR)
+ $(SAN_FLAGS) \
+ $(WERROR) \
+ # end
AM_CPPFLAGS = \
- @ASAN_FLAGS@ @TSAN_FLAGS@ @MSAN_FLAGS@ \
-I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/lib \
-I$(top_builddir) -I$(top_builddir)/include -I$(top_builddir)/lib
AM_LDFLAGS = \
- -export-dynamic
+ -export-dynamic \
+ $(SAN_FLAGS) \
+ # end
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -DCONFDATE=$(CONFDATE)
LIBCAP = @LIBCAP@