diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-05 16:11:54 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-08-05 16:11:54 +0000 |
commit | 10122b13d313463e44c7305d4dd6111efde4eab2 (patch) | |
tree | 63b2a7698adb06980c9000aea9aaa13063eba330 /libgomp/testsuite | |
parent | 9508273b7413e558c002dbc62c1e6d361c063975 (diff) | |
download | gcc-10122b13d313463e44c7305d4dd6111efde4eab2.tar.gz |
2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
* testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
only build.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150495 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.fortran/fortran.exp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.fortran/fortran.exp b/libgomp/testsuite/libgomp.fortran/fortran.exp index 3d6615ffee7..acbfe49e5e3 100644 --- a/libgomp/testsuite/libgomp.fortran/fortran.exp +++ b/libgomp/testsuite/libgomp.fortran/fortran.exp @@ -1,16 +1,25 @@ +load_lib libgomp-dg.exp + +global shlib_ext + +set shlib_ext [get_shlib_extension] set lang_library_path "../libgfortran/.libs" set lang_link_flags "-lgfortran" set lang_test_file_found 0 -load_lib libgomp-dg.exp # Initialize dg. dg-init if { $blddir != "" } { + # Look for a static libgfortran first. if [file exists "${blddir}/${lang_library_path}/libgfortran.a"] { set lang_test_file "${lang_library_path}/libgfortran.a" set lang_test_file_found 1 + # We may have a shared only build, so look for a shared libgfortran. + } elseif [file exists "${blddir}/${lang_library_path}/libgfortran.${shlib_ext}"] { + set lang_test_file "${lang_library_path}/libgfortran.${shlib_ext}" + set lang_test_file_found 1 } else { puts "No libgfortran library found, will not execute fortran tests" } |