summaryrefslogtreecommitdiff
path: root/baseboards
diff options
context:
space:
mode:
authorSteve Ellcey <sellcey@mips.com>2014-03-15 09:38:11 +1100
committerBen Elliston <bje@gnu.org>2014-03-15 09:38:11 +1100
commitd0ace52ec4b477626217cc58705e8bfedd2b4e1a (patch)
tree8e97658a681a0a846b4943335b873d5d3fd4c3b4 /baseboards
parenta60f6c7d46ba5688ee9c2fee4b27a20fb2be8190 (diff)
downloaddejagnu-d0ace52ec4b477626217cc58705e8bfedd2b4e1a.tar.gz
dejagnu-d0ace52ec4b477626217cc58705e8bfedd2b4e1a.tar.bz2
dejagnu-d0ace52ec4b477626217cc58705e8bfedd2b4e1a.zip
* baseboards/multi-sim.exp (rpath_flags): Add libatomic.so check.
Signed-off-by: Ben Elliston <bje@gnu.org>
Diffstat (limited to 'baseboards')
-rw-r--r--baseboards/multi-sim.exp7
1 files changed, 6 insertions, 1 deletions
diff --git a/baseboards/multi-sim.exp b/baseboards/multi-sim.exp
index f725c6c..c588fd7 100644
--- a/baseboards/multi-sim.exp
+++ b/baseboards/multi-sim.exp
@@ -58,7 +58,7 @@ proc rpath_flags { args } {
set mflags "[board_info $board multilib_flags] [libgloss_include_flags] [newlib_include_flags] [libgloss_link_flags] [libgloss_link_flags]"
set rpathflags ""
set gccpath [get_multilibs]
- foreach i {libgcc_s.so libstdc++.so libgfortran.so libc.so} {
+ foreach i {libgcc_s.so libstdc++.so libgfortran.so libatomic.so libc.so} {
set result [remote_exec host "$compiler $mflags --print-file-name=$i"]
set output [lindex $result 1]
set rpathdir [file dirname $output]
@@ -77,6 +77,11 @@ proc rpath_flags { args } {
set rpathflags "$rpathflags -Wl,-rpath=$gccpath/libgfortran/.libs"
}
}
+ if [string match $i "libatomic.so"] {
+ if [file exists "$gccpath/libatomic/.libs/libatomic.so"] {
+ set rpathflags "$rpathflags -Wl,-rpath=$gccpath/libatomic/.libs"
+ }
+ }
} else {
set rpathflags "$rpathflags -Wl,-rpath=$rpathdir"
}