diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-02 20:36:20 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 21:30:42 +0200 |
commit | dbac691da646e624addc8f3ed5e744f9d3f8d69f (patch) | |
tree | 59b52a11b02a5ce51ba102716c9c6a337193a04c /lib/subdir.am | |
parent | build: make pkgconfig configure output useful (diff) | |
download | frr-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 'lib/subdir.am')
-rw-r--r-- | lib/subdir.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/subdir.am b/lib/subdir.am index 09deb9bc1..499bb9492 100644 --- a/lib/subdir.am +++ b/lib/subdir.am @@ -254,9 +254,10 @@ lib_grammar_sandbox_SOURCES = \ lib_grammar_sandbox_LDADD = \ lib/libfrr.la -lib_clippy_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE -DBUILDING_CLIPPY @SAN_CLIPPY_FLAGS@ -lib_clippy_CFLAGS = $(PYTHON_CFLAGS) @SAN_CLIPPY_FLAGS@ +lib_clippy_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE -DBUILDING_CLIPPY +lib_clippy_CFLAGS = $(PYTHON_CFLAGS) lib_clippy_LDADD = $(PYTHON_LIBS) +lib_clippy_LDFLAGS = -export-dynamic lib_clippy_SOURCES = \ lib/clippy.c \ lib/command_graph.c \ |