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
This commit is contained in:
parent
be483ee77a
commit
b33593abbd
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue