]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Properly add path to libsanitizer.spec to cflags
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 29 Nov 2013 17:08:14 +0000 (17:08 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 29 Nov 2013 17:08:14 +0000 (09:08 -0800)
* lib/asan-dg.exp (asan_link_flags): Properly add path to
libsanitizer.spec to cflags.

From-SVN: r205537

gcc/testsuite/ChangeLog
gcc/testsuite/lib/asan-dg.exp

index 9fbc94df4cf79a2fdabe192358dda7ec3075d916..3f13f64245cb9d9c5370eaee36d4a9158efeaf8d 100644 (file)
@@ -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
index 823265ccb84a1b57b66c8716c1dc3d3efdbeefce..1e6c7ddc02b11527497711644968e0a80b215783 100644 (file)
@@ -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"
       }