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" }