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/\"