libtool-patches
[Top][All Lists]
Advanced

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

Patch against HEAD for *-unst brokenness on Solaris


From: libtool-patches
Subject: Patch against HEAD for *-unst brokenness on Solaris
Date: Mon, 23 Apr 2001 11:06:00 -0500
User-agent: Mutt/1.1.12i

The attached patch will cause the *-unst.test tests to pass on
Solaris.

ChangeLog entry:
2001-04-23  Albert Chin-A-Young <address@hidden>
        * ltmain.in: Force use of test -L in a subshell to handle
          failure more robustly. Add test -h to check for symbolic
          link if test -L fails (Solaris /bin/sh works with test -h
          but not test -L).

-- 
albert chin (address@hidden)

-- snip snip
Index: ltmain.in
===================================================================
RCS file: /home/cvs/libtool/ltmain.in,v
retrieving revision 1.256
diff -u -3 -p -r1.256 ltmain.in
--- ltmain.in   2001/04/21 17:10:20     1.256
+++ ltmain.in   2001/04/23 15:54:13
@@ -4657,7 +4657,8 @@ relink_command=\"$relink_command\""
       fi
 
       # Don't error if the file doesn't exist and rm -f was used.
-      if test -L "$file" >/dev/null 2>&1 || test -f "$file"; then
+      if (test -L "$file") >/dev/null 2>&1 || \
+      (test -h "$file") >/dev/null 2>&1 || test -f "$file"; then
         :
       elif test -d "$file"; then
         exit_status=1



reply via email to

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