diff options
author | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-24 04:39:41 +0000 |
---|---|---|
committer | danglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-24 04:39:41 +0000 |
commit | c0e3142700d37457c294280f86353edce3c19534 (patch) | |
tree | 01527763d9092da3909d80b1b0942d2439662fc2 /libffi/testsuite | |
parent | 92ebe7d37e9c6695bc5060d58f199eab38e9cc41 (diff) | |
download | gcc-c0e3142700d37457c294280f86353edce3c19534.tar.gz |
* lib/target-libpath.exp: New file defining set_ld_library_path_env_vars
and restore_ld_library_path_env_vars.
* g++.dg/compat/compat.exp, lib/g++.exp, lib/gcc-dg.exp,
lib/gfortran.exp, lib/objc.exp, lib/treelang.exp: Use new procs.
* ada/acats/run_acats (LD_LIBRARY_PATH): Add previous LD_LIBRARY_PATH
to LD_LIBRARY_PATH. Export LD_LIBRARY_PATH.
* testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.
* testsuite/lib/libjava.exp,
testsuite/libjava.jacks/jacks.exp: Use new procs in target-libpath.exp.
* testsuite/lib/libmudflap.exp: Use new procs in target-libpath.exp.
* testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91137 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/testsuite')
-rw-r--r-- | libffi/testsuite/lib/libffi-dg.exp | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/libffi/testsuite/lib/libffi-dg.exp b/libffi/testsuite/lib/libffi-dg.exp index b31a95f7f48..49c7705dd23 100644 --- a/libffi/testsuite/lib/libffi-dg.exp +++ b/libffi/testsuite/lib/libffi-dg.exp @@ -21,6 +21,7 @@ proc load_gcc_lib { filename } { load_lib dg.exp load_lib libgloss.exp +load_gcc_lib target-libpath.exp load_gcc_lib wrapper.exp @@ -83,6 +84,7 @@ proc libffi-init { args } { global libffi_include global libffi_link_flags global tool_root_dir + global ld_library_path set blddirffi [lookfor_file [get_multilibs] libffi] verbose "libffi $blddirffi" @@ -131,29 +133,7 @@ proc libffi-init { args } { lappend libffi_link_flags "-L${blddircxx}/src/.libs" } - # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but - # called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH - # (for the 64-bit ABI). The right way to do this would be to modify - # unix.exp -- but that's not an option since it's part of DejaGNU - # proper, so we do it here. - # The same applies to darwin (DYLD_LIBRARY_PATH), solaris 32 bit - # (LD_LIBRARY_PATH_32), solaris 64 bit (LD_LIBRARY_PATH_64), and HP-UX - # (SHLIB_PATH). - if {![is_remote target]} { - set ld_path "LD_LIBRARY_PATH SHLIB_PATH LD_LIBRARYN32_PATH LD_LIBRARY64_PATH LD_LIBRARY_PATH_32 LD_LIBRARY_PATH_64 DYLD_LIBRARY_PATH" - foreach path $ld_path { - if [info exists env($path)] { - # If we've already added these directories once, keep - # the existing path. - if {$ld_library_path != $env($path) - && [string first $ld_library_path: $env($path)] != 0} { - setenv $path "$ld_library_path:$env($path)" - } - } else { - setenv $path "$ld_library_path" - } - } - } + set_ld_library_path_env_vars libffi_maybe_build_wrapper "${objdir}/testglue.o" } |