dummy commit before egcs merge
[deliverable/binutils-gdb.git] / ltmain.sh
index 8f8f6fb9081bb500a8bd3e136ea3155d5f64257f..eee5763387b3d353de096ab878b1a7a53f2a92e0 100644 (file)
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -743,6 +743,11 @@ if test -z "$show_help"; then
             if test "$hardcode_direct" = no; then
               compile_command="$compile_command $dir/$linklib"
             elif test "$hardcode_minus_L" = no; then
+             case "$host" in
+             *-*-sunos*)
+                compile_shlibpath="$compile_shlibpath$dir:"
+               ;;
+             esac
               compile_command="$compile_command -L$dir -l$name"
             elif test "$hardcode_shlibpath_var" = no; then
               compile_shlibpath="$compile_shlibpath$dir:"
@@ -1055,6 +1060,11 @@ if test -z "$show_help"; then
          major=
          versuffix=
          verstring="0.0"
+         case "$host" in
+         *-*-sunos*)
+           versuffix=".0.0"
+           ;;
+         esac
        fi
 
        # Check to see if the archive will have undefined symbols.
@@ -1657,6 +1667,7 @@ fi\
        addlibs="$convenience"
        build_libtool_libs=no
       else
+       oldobjs="$objs"`$echo "X$libobjs " | $Xsed -e 's/[^   ]*\.a //g' -e 's/[^   ]*\.lib //g' -e "$los2o" -e 's/ $//g'`
        addlibs="$old_convenience"
       fi
 
@@ -1751,7 +1762,7 @@ libdir='$install_libdir'\
 
     # There may be an optional sh(1) argument at the beginning of
     # install_prog (especially on Windows NT).
-    if test "$nonopt" = "$SHELL"; then
+    if test "$nonopt" = "$SHELL" || test "$nonopt" = "/bin/sh"; then
       # Aesthetically quote it.
       arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
       case "$arg" in
This page took 0.027387 seconds and 4 git commands to generate.