* lib/wrapper.exp (${tool}_maybe_build_wrapper): Set up
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 2009 18:36:58 +0000 (18:36 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 2009 18:36:58 +0000 (18:36 +0000)
GCC_EXEC_PREFIX before building the wrapper.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150889 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/wrapper.exp

index a0c52bd..385c982 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-18  DJ Delorie  <dj@redhat.com>
+
+       * lib/wrapper.exp (${tool}_maybe_build_wrapper): Set up
+       GCC_EXEC_PREFIX before building the wrapper.
+
 2009-08-18  Nathan Froyd  <froydnj@codesourcery.com>
 
        * gcc.dg/vect/vect.exp: Add new stanza for aligned-section-anchors-*
index 4e5ae43..fba7324 100644 (file)
@@ -16,6 +16,8 @@
 
 # This file contains GCC-specifics for status wrappers for test programs.
 
+load_lib target-libpath.exp
+
 # ${tool}_maybe_build_wrapper -- Build wrapper object if the target
 # needs it.  FILENAME is the path to the wrapper file.  If there are
 # additional arguments, they are command-line options to provide to
@@ -27,6 +29,7 @@ proc ${tool}_maybe_build_wrapper { filename args } {
     if { [target_info needs_status_wrapper] != "" \
         && [target_info needs_status_wrapper] != "0" \
         && ![info exists gluefile] } {
+       set_ld_library_path_env_vars
        set saved_wrap_compile_flags [target_info wrap_compile_flags]
        set flags [join $args " "]
        # The wrapper code may contain code that gcc objects on.  This