libtool-patches
[Top][All Lists]
Advanced

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

Re: piecewise linking doesn't work with absolute output path


From: Albert Chin
Subject: Re: piecewise linking doesn't work with absolute output path
Date: Fri, 12 Mar 2004 12:07:07 -0600
User-agent: Mutt/1.4i

On Fri, Mar 12, 2004 at 11:41:35AM -0600, Albert Chin wrote:
> Piecewise linking doesn't work when -o specifies an absolute path.

Well, that didn't work. Try this.

-- 
albert chin (address@hidden)

-- snip snip
2004-03-12  Albert Chin-A-Young  <address@hidden>

        * ltmain.in: Piecewise linking doesn't work when the output
        file is an asbolute path.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.334.2.27
diff -u -3 -p -r1.334.2.27 ltmain.in
--- ltmain.in   15 Feb 2004 13:22:05 -0000      1.334.2.27
+++ ltmain.in   12 Mar 2004 18:04:23 -0000
@@ -3782,6 +3874,7 @@ EOF
            save_libobjs=$libobjs
          fi
          save_output=$output
+         output_la=`echo "$output" | $SED $basename`
 
          # Clear the reloadable object creation command queue and
          # initialize k to one.
@@ -3791,7 +3884,7 @@ EOF
          delfiles=
          last_robj=
          k=1
-         output=$output_objdir/$save_output-${k}.$objext
+         output=$output_objdir/$output_la-${k}.$objext
          # Loop over the list of objects to be linked.
          for obj in $save_libobjs
          do
@@ -3811,9 +3904,9 @@ EOF
                # the last one created.
                eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist 
$last_robj\"
              fi
-             last_robj=$output_objdir/$save_output-${k}.$objext
+             last_robj=$output_objdir/$output_la-${k}.$objext
              k=`expr $k + 1`
-             output=$output_objdir/$save_output-${k}.$objext
+             output=$output_objdir/$output_la-${k}.$objext
              objlist=$obj
              len=1
            fi
@@ -3839,7 +3932,7 @@ EOF
          while test "$i" -lt "$k"
          do
            i=`expr $i + 1`
-           delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
+           delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
          done
 
          $echo "creating a temporary reloadable object file: $output"




reply via email to

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