mirror of git://gcc.gnu.org/git/gcc.git
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
|
|
@ -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>
|
2013-11-29 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
PR middle-end/59208
|
PR middle-end/59208
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,10 @@ proc asan_link_flags { paths } {
|
||||||
set shlib_ext [get_shlib_extension]
|
set shlib_ext [get_shlib_extension]
|
||||||
|
|
||||||
if { $gccpath != "" } {
|
if { $gccpath != "" } {
|
||||||
append flags " -B${gccpath}/libsanitizer/asan/ "
|
append flags " -B${gccpath}/libsanitizer/ "
|
||||||
if { [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.a"]
|
if { [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.a"]
|
||||||
|| [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.${shlib_ext}"] } {
|
|| [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.${shlib_ext}"] } {
|
||||||
|
append flags " -B${gccpath}/libsanitizer/asan/ "
|
||||||
append flags " -L${gccpath}/libsanitizer/asan/.libs "
|
append flags " -L${gccpath}/libsanitizer/asan/.libs "
|
||||||
append ld_library_path ":${gccpath}/libsanitizer/asan/.libs"
|
append ld_library_path ":${gccpath}/libsanitizer/asan/.libs"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue