Fix two testcase builds so they work when linked against a VEX
that was compiled with -fsanitize=undefined
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15348 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/none/tests/Makefile.am b/none/tests/Makefile.am
index c9c9c81..dd5959e 100644
--- a/none/tests/Makefile.am
+++ b/none/tests/Makefile.am
@@ -258,10 +258,13 @@
nestedfns_CFLAGS = $(AM_CFLAGS)
mq_LDADD = -lrt
endif
-libvex_test_LDADD = ../../VEX/libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a
+libvex_test_CFLAGS = @FLAG_FSANITIZE@
+libvex_test_LDADD = ../../VEX/libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a \
+ @LIB_UBSAN@
+libvexmultiarch_test_CFLAGS= @FLAG_FSANITIZE@
libvexmultiarch_test_LDADD = \
../../VEX/libvexmultiarch-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a \
- ../../VEX/libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a
+ ../../VEX/libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a @LIB_UBSAN@
libvexmultiarch_test_SOURCES = libvex_test.c
pth_atfork1_LDADD = -lpthread
pth_blockedsig_LDADD = -lpthread