Commit b33593ab by H.J. Lu Committed by H.J. Lu

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
parent be483ee7
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"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment