tests: do not use global CFLAGS for fake token helper.

Dynamic librarties cannot be linked with sanitizers this way,
just ignore CFLAGS here.
This commit is contained in:
Milan Broz
2022-11-04 19:16:06 +01:00
parent d4888fba86
commit f35b9cc99b

View File

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