summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/lib/ubsan-dg.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/lib/ubsan-dg.exp')
-rw-r--r--gcc/testsuite/lib/ubsan-dg.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/ubsan-dg.exp b/gcc/testsuite/lib/ubsan-dg.exp
index 4ec5fdfad67..2e6b272822d 100644
--- a/gcc/testsuite/lib/ubsan-dg.exp
+++ b/gcc/testsuite/lib/ubsan-dg.exp
@@ -30,9 +30,9 @@ proc ubsan_link_flags { paths } {
set shlib_ext [get_shlib_extension]
if { $gccpath != "" } {
+ append flags " -B${gccpath}/libsanitizer/ubsan/ "
if { [file exists "${gccpath}/libsanitizer/ubsan/.libs/libubsan.a"]
|| [file exists "${gccpath}/libsanitizer/ubsan/.libs/libubsan.${shlib_ext}"] } {
- append flags " -B${gccpath}/libsanitizer/ubsan/ "
append flags " -L${gccpath}/libsanitizer/ubsan/.libs"
append ld_library_path ":${gccpath}/libsanitizer/ubsan/.libs"
}
OpenPOWER on IntegriCloud