]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix two testcase builds so they work when linked against a VEX
authorFlorian Krohm <florian@eich-krohm.de>
Sun, 21 Jun 2015 17:54:27 +0000 (17:54 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sun, 21 Jun 2015 17:54:27 +0000 (17:54 +0000)
that was compiled with -fsanitize=undefined

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15348

none/tests/Makefile.am

index c9c9c81d8c39c33ce400cbbb4e34f7762ab1e544..dd5959e6850c12c3a4c532dd5e3a0969cb7dc0e7 100644 (file)
@@ -258,10 +258,13 @@ else
  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