re PR libgomp/47804 (libgomp LD_LIBRARY_PATH doesn't include path to libgfortran)
PR libgomp/47804 * testsuite/libgomp.fortran/fortran.exp: Check for both libquadmath.a and libquadmath.${shlib_ext}. If neither exists, but $blddir != "", still append ${blddir}/${lang_library_path} to ld_library_path. From-SVN: r170285
This commit is contained in:
parent
b3c1b8a1d6
commit
67962076d9
2 changed files with 18 additions and 5 deletions
|
@ -1,3 +1,11 @@
|
|||
2011-02-18 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR libgomp/47804
|
||||
* testsuite/libgomp.fortran/fortran.exp: Check for both
|
||||
libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
|
||||
but $blddir != "", still append ${blddir}/${lang_library_path}
|
||||
to ld_library_path.
|
||||
|
||||
2011-02-16 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
PR libgomp/47758
|
||||
|
|
|
@ -37,11 +37,16 @@ if { $lang_test_file_found } {
|
|||
# Gather a list of all tests.
|
||||
set tests [lsort [find $srcdir/$subdir *.\[fF\]{,90,95,03,08}]]
|
||||
|
||||
if { ($blddir != "") && [file exists "${blddir}/${quadmath_library_path}/libquadmath.a"] } {
|
||||
lappend ALWAYS_CFLAGS "ldflags=-L${blddir}/${quadmath_library_path}/"
|
||||
# Allow for spec subsitution.
|
||||
lappend ALWAYS_CFLAGS "additional_flags=-B${blddir}/${quadmath_library_path}/"
|
||||
set ld_library_path "$always_ld_library_path:${blddir}/${lang_library_path}:${blddir}/${quadmath_library_path}"
|
||||
if { $blddir != "" } {
|
||||
if { [file exists "${blddir}/${quadmath_library_path}/libquadmath.a"]
|
||||
|| [file exists "${blddir}/${quadmath_library_path}/libquadmath.${shlib_ext}"] } {
|
||||
lappend ALWAYS_CFLAGS "ldflags=-L${blddir}/${quadmath_library_path}/"
|
||||
# Allow for spec subsitution.
|
||||
lappend ALWAYS_CFLAGS "additional_flags=-B${blddir}/${quadmath_library_path}/"
|
||||
set ld_library_path "$always_ld_library_path:${blddir}/${lang_library_path}:${blddir}/${quadmath_library_path}"
|
||||
} else {
|
||||
set ld_library_path "$always_ld_library_path:${blddir}/${lang_library_path}"
|
||||
}
|
||||
} else {
|
||||
set ld_library_path "$always_ld_library_path"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue