From b33593abbd88a59c9f5c71d117b295e2e77b4ccb Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 29 Nov 2013 17:08:14 +0000 Subject: [PATCH] Properly add path to libsanitizer.spec to cflags * lib/asan-dg.exp (asan_link_flags): Properly add path to libsanitizer.spec to cflags. From-SVN: r205537 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/asan-dg.exp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9fbc94df4cf..3f13f64245c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-11-29 H.J. Lu + + * lib/asan-dg.exp (asan_link_flags): Properly add path to + libsanitizer.spec to cflags. + 2013-11-29 Richard Biener PR middle-end/59208 diff --git a/gcc/testsuite/lib/asan-dg.exp b/gcc/testsuite/lib/asan-dg.exp index 823265ccb84..1e6c7ddc02b 100644 --- a/gcc/testsuite/lib/asan-dg.exp +++ b/gcc/testsuite/lib/asan-dg.exp @@ -39,9 +39,10 @@ proc asan_link_flags { paths } { set shlib_ext [get_shlib_extension] if { $gccpath != "" } { - append flags " -B${gccpath}/libsanitizer/asan/ " + append flags " -B${gccpath}/libsanitizer/ " if { [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.a"] || [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.${shlib_ext}"] } { + append flags " -B${gccpath}/libsanitizer/asan/ " append flags " -L${gccpath}/libsanitizer/asan/.libs " append ld_library_path ":${gccpath}/libsanitizer/asan/.libs" }