diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-29 17:08:14 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-29 17:08:14 +0000 |
commit | 706fdc651ca7891d599bdf820621dcaa1aca5fa5 (patch) | |
tree | 718e63e947eba9800d4766a040d1568853e4a64e | |
parent | 92f250206ac29e905098954f4ed423f55eb266ef (diff) |
Properly add path to libsanitizer.spec to cflags
* lib/asan-dg.exp (asan_link_flags): Properly add path to
libsanitizer.spec to cflags.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205537 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/asan-dg.exp | 3 |
2 files changed, 7 insertions, 1 deletions
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 <hongjiu.lu@intel.com> + + * lib/asan-dg.exp (asan_link_flags): Properly add path to + libsanitizer.spec to cflags. + 2013-11-29 Richard Biener <rguenther@suse.de> 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" } |