diff options
author | Robert Suchanek <Robert.Suchanek@imgtec.com> | 2015-09-10 13:08:07 +1000 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2015-09-10 13:08:07 +1000 |
commit | f4d9a7060aa87938b39cd397fbbfded4e736fdd8 (patch) | |
tree | ec9543f8496488d8efe91bdbeaa59e09039d7eef /baseboards | |
parent | e7d7a3e0b0cda9194c192e979f4ecc8dcfb010b3 (diff) | |
download | dejagnu-f4d9a7060aa87938b39cd397fbbfded4e736fdd8.tar.gz dejagnu-f4d9a7060aa87938b39cd397fbbfded4e736fdd8.tar.bz2 dejagnu-f4d9a7060aa87938b39cd397fbbfded4e736fdd8.zip |
* baseboards/multi-sim.exp (rpath_flags): Add libgomp.so check.
Signed-off-by: Ben Elliston <bje@gnu.org>
Diffstat (limited to 'baseboards')
-rw-r--r-- | baseboards/multi-sim.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/baseboards/multi-sim.exp b/baseboards/multi-sim.exp index 0f33242..c057ccd 100644 --- a/baseboards/multi-sim.exp +++ b/baseboards/multi-sim.exp @@ -70,7 +70,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 libatomic.so} { + foreach i {libgcc_s.so libstdc++.so libgfortran.so libatomic.so libgomp.so} { set result [remote_exec host "$compiler $mflags --print-file-name=$i"] set output [lindex $result 1] set rpathdir [file dirname $output] @@ -94,6 +94,11 @@ proc rpath_flags { args } { set rpathflags "$rpathflags -Wl,-rpath=$gccpath/libatomic/.libs" } } + if [string match $i "libgomp.so"] { + if [file exists "$gccpath/libgomp/.libs/libgomp.so"] { + set rpathflags "$rpathflags -Wl,-rpath=$gccpath/libgomp/.libs" + } + } } else { set rpathflags "$rpathflags -Wl,-rpath=$rpathdir" } |