From f35b9cc99bada777e11c5ccc29f8079117427ebb Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Fri, 4 Nov 2022 19:16:06 +0100 Subject: [PATCH] tests: do not use global CFLAGS for fake token helper. Dynamic librarties cannot be linked with sanitizers this way, just ignore CFLAGS here. --- tests/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 9b47a5d3..0befa718 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -46,8 +46,9 @@ endif ssh-test-plugin: fake_token_path.so systemd-tokens-test: fake_token_path.so fake_systemd_tpm_path.so +# Do not use global CFLAGS here as the *.so link does not support sanitizers fake_token_path.so: - $(CC) $(CFLAGS) $(LDFLAGS) -I $(top_srcdir)/lib -fPIC -shared \ + $(CC) $(LDFLAGS) -I $(top_srcdir)/lib -fPIC -shared \ -Wl,--version-script=$(top_srcdir)/lib/libcryptsetup.sym \ -o fake_token_path.so $(top_srcdir)/tests/fake_token_path.c \ -DBUILD_DIR=\"$(abs_top_srcdir)/.libs/\"