Commit 33d1a550 by H.J. Lu Committed by H.J. Lu

re PR testsuite/40601 (Errors in "make check")

2009-07-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/40601
	* testsuite/lib/libffi-dg.exp (libffi-init): Properly set
	gccdir.  Adjust ld_library_path for gcc only if gccdir isn't
	empty.

From-SVN: r149145
parent 4aa7f896
2009-07-01 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/40601
* testsuite/lib/libffi-dg.exp (libffi-init): Properly set
gccdir. Adjust ld_library_path for gcc only if gccdir isn't
empty.
2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
* testsuite/lib/libffi-dg.exp (libffi-init): Don't add "."
......
......@@ -108,7 +108,10 @@ proc libffi-init { args } {
verbose "libstdc++ $blddircxx"
set gccdir [lookfor_file $tool_root_dir gcc/libgcc.a]
add_path ld_library_path [find_libgcc_s "$gccdir/xgcc"]
if {$gccdir != ""} {
set gccdir [file dirname $gccdir]
add_path ld_library_path [find_libgcc_s "$gccdir/xgcc"]
}
# add the library path for libffi.
add_path ld_library_path "${blddirffi}/.libs"
# add the library path for libstdc++ as well.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment