libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HEAD: static.at rewrite for w32


From: Ralf Wildenhues
Subject: Re: HEAD: static.at rewrite for w32
Date: Sun, 25 Feb 2007 20:17:42 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

OK, with this it passes for me on Cygwin and MinGW.
And doesn't fail on GNU/Linux either.  So I committed this.

Cheers,
Ralf

2007-02-25  Ralf Wildenhues  <address@hidden>

        * tests/static.at: Forgot to fix PATH for the first
        func_test_exec invocation.  So factor out into new functions
        func_fix_path and func_restore_path and use those.

Index: tests/static.at
===================================================================
RCS file: /sources/libtool/libtool/tests/static.at,v
retrieving revision 1.4
diff -u -r1.4 static.at
--- tests/static.at     25 Feb 2007 14:50:08 -0000      1.4
+++ tests/static.at     25 Feb 2007 17:03:05 -0000
@@ -105,13 +105,8 @@
   done
 )
 
-# func_move_libs srcdir_to_move prefix_to_move other_prefix other_prefix
-func_move_libs ()
+func_fix_path ()
 {
-  LT_AT_MVDIR(["${1}"], ["${1}-moved"])
-  LT_AT_MVDIR(["${2}"], ["${2}-moved"])
-  LT_AT_MVDIR(["$srcdir_broken"], ["${1}"])
-  LT_AT_MVDIR(["$prefix_broken"], ["${2}"])
   # For w32, hardcoding cannot work, but $libdir/../bin is where binaries
   # usually are installed.  Since we use several prefixes for testing
   # convenience -- it allows us to replace the good libraries easily with
@@ -125,17 +120,32 @@
     save_PATH=$PATH
     sep=
     test -z "$PATH" || sep=:
-    PATH=${3}/bin:${4}/bin:${2}/bin$sep$PATH
+    PATH=${2}/bin:${3}/bin:${1}/bin$sep$PATH
   fi
 
 }
 
-# func_restore_libs srcdir_to_restore prefix_to_restore
-func_restore_libs ()
+func_restore_path ()
 {
   if test "$shlibpath_var" = PATH; then
     PATH=$save_PATH
   fi
+}
+
+# func_move_libs srcdir_to_move prefix_to_move other_prefix other_prefix
+func_move_libs ()
+{
+  LT_AT_MVDIR(["${1}"], ["${1}-moved"])
+  LT_AT_MVDIR(["${2}"], ["${2}-moved"])
+  LT_AT_MVDIR(["$srcdir_broken"], ["${1}"])
+  LT_AT_MVDIR(["$prefix_broken"], ["${2}"])
+  func_fix_path ${2} ${3} ${4}
+}
+
+# func_restore_libs srcdir_to_restore prefix_to_restore
+func_restore_libs ()
+{
+  func_restore_path
   LT_AT_MVDIR(["${2}"], ["$prefix_broken"])
   LT_AT_MVDIR(["${1}"], ["$srcdir_broken"])
   LT_AT_MVDIR(["${2}-moved"], ["${2}"])
@@ -294,7 +304,10 @@
 
 
   ### Run each program once so that relinking has happened.
+  
+  func_fix_path $prefix1 $prefix2 $prefix3
   func_test_exec -static -static-libtool-libs -all-static `$per_deplib && echo 
1 2 3 12 13 23 31 123 123a`
+  func_restore_path
 
   # For each library:
   # - remove the library images to catch failure to link 
statically/dynamically,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]