Mercurial > hg > CbC > CbC_gcc
diff libgomp/testsuite/libgomp.fortran/fortran.exp @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | f6334be47118 |
line wrap: on
line diff
--- a/libgomp/testsuite/libgomp.fortran/fortran.exp Sun Feb 07 18:28:00 2010 +0900 +++ b/libgomp/testsuite/libgomp.fortran/fortran.exp Fri Feb 12 23:39:51 2010 +0900 @@ -1,18 +1,27 @@ +load_lib libgomp-dg.exp + +global shlib_ext + +set shlib_ext [get_shlib_extension] set lang_library_path "../libgfortran/.libs" -set lang_link_flags "-lgfortranbegin -lgfortran" +set lang_link_flags "-lgfortran" set lang_test_file_found 0 -load_lib libgomp-dg.exp # Initialize dg. dg-init if { $blddir != "" } { - if [file exists "${blddir}/${lang_library_path}/libgfortranbegin.a"] { - set lang_test_file "${lang_library_path}/libgfortranbegin.a" + # 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 libgfortranbegin library found, will not execute fortran tests" + puts "No libgfortran library found, will not execute fortran tests" } } elseif [info exists GFORTRAN_UNDER_TEST] { set lang_test_file_found 1