diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2013-12-16 17:17:41 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2013-12-16 17:17:41 +0000 |
commit | 77d4586cc47e8f4c02278afbc220145bba0d442b (patch) | |
tree | ba088e5e4c09032de0d5a4c06521c514a61352dd /patches/win32_tests | |
parent | 7e282893378b9ea580e21e3ec48d2ad49d8735c0 (diff) | |
parent | 5c455874a36d62983b63c2ea33fdc861be417d18 (diff) | |
download | libffi-baserock/morph.tar.gz |
Merge branch 'baserock/pedroalvarez/power-port' into baserock/morphbaserock/morph
Reviewed-by: Ben Brown
Reviewed-by: Daniel Silverstone
Diffstat (limited to 'patches/win32_tests')
-rw-r--r-- | patches/win32_tests | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/patches/win32_tests b/patches/win32_tests deleted file mode 100644 index 42edf1a..0000000 --- a/patches/win32_tests +++ /dev/null @@ -1,97 +0,0 @@ -Index: libffi/ChangeLog -=================================================================== ---- libffi.orig/ChangeLog -+++ libffi/ChangeLog -@@ -1,3 +1,10 @@ -+2012-03-21 Peter Rosin <peda@lysator.liu.se> -+ -+ * testsuite/lib/target-libpath.exp [*-*-cygwin*, *-*-mingw*] -+ (set_ld_library_path_env_vars): Add the library search dir to PATH -+ (and save PATH for later). -+ (restore_ld_library_path_env_vars): Restore PATH. -+ - 2012-03-20 Peter Rosin <peda@lysator.liu.se> - - * testsuite/libffi.call/strlen2_win32.c (main): Remove bug. -Index: libffi/testsuite/lib/target-libpath.exp -=================================================================== ---- libffi.orig/testsuite/lib/target-libpath.exp -+++ libffi/testsuite/lib/target-libpath.exp -@@ -25,7 +25,7 @@ set orig_ld_library64_path_saved 0 - set orig_ld_library_path_32_saved 0 - set orig_ld_library_path_64_saved 0 - set orig_dyld_library_path_saved 0 -- -+set orig_path_saved 0 - - ####################################### - # proc set_ld_library_path_env_vars { } -@@ -42,6 +42,7 @@ proc set_ld_library_path_env_vars { } { - global orig_ld_library_path_32_saved - global orig_ld_library_path_64_saved - global orig_dyld_library_path_saved -+ global orig_path_saved - global orig_ld_library_path - global orig_ld_run_path - global orig_shlib_path -@@ -50,6 +51,7 @@ proc set_ld_library_path_env_vars { } { - global orig_ld_library_path_32 - global orig_ld_library_path_64 - global orig_dyld_library_path -+ global orig_path - global GCC_EXEC_PREFIX - - # Set the relocated compiler prefix, but only if the user hasn't specified one. -@@ -100,6 +102,10 @@ proc set_ld_library_path_env_vars { } { - set orig_dyld_library_path "$env(DYLD_LIBRARY_PATH)" - set orig_dyld_library_path_saved 1 - } -+ if [info exists env(PATH)] { -+ set orig_path "$env(PATH)" -+ set orig_path_saved 1 -+ } - } - - # We need to set ld library path in the environment. Currently, -@@ -169,6 +175,13 @@ proc set_ld_library_path_env_vars { } { - } else { - setenv DYLD_LIBRARY_PATH "$ld_library_path" - } -+ if { [istarget *-*-cygwin*] || [istarget *-*-mingw*] } { -+ if { $orig_path_saved } { -+ setenv PATH "$ld_library_path:$orig_path" -+ } else { -+ setenv PATH "$ld_library_path" -+ } -+ } - - verbose -log "set_ld_library_path_env_vars: ld_library_path=$ld_library_path" - } -@@ -187,6 +200,7 @@ proc restore_ld_library_path_env_vars { - global orig_ld_library_path_32_saved - global orig_ld_library_path_64_saved - global orig_dyld_library_path_saved -+ global orig_path_saved - global orig_ld_library_path - global orig_ld_run_path - global orig_shlib_path -@@ -195,6 +209,7 @@ proc restore_ld_library_path_env_vars { - global orig_ld_library_path_32 - global orig_ld_library_path_64 - global orig_dyld_library_path -+ global orig_path - - if { $orig_environment_saved == 0 } { - return -@@ -240,6 +255,11 @@ proc restore_ld_library_path_env_vars { - } elseif [info exists env(DYLD_LIBRARY_PATH)] { - unsetenv DYLD_LIBRARY_PATH - } -+ if { $orig_path_saved } { -+ setenv PATH "$orig_path" -+ } elseif [info exists env(PATH)] { -+ unsetenv PATH -+ } - } - - ####################################### |