[Top][All Lists]
[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: |
Sun, 14 Mar 2004 14:59:23 -0600 |
User-agent: |
Mutt/1.4i |
On Fri, Mar 12, 2004 at 12:07:07PM -0600, Albert Chin wrote:
> 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.
Patch against HEAD.
--
albert chin (address@hidden)
-- snip snip
2004-03-14 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.390
diff -u -3 -p -r1.390 ltmain.in
--- ltmain.in 14 Mar 2004 14:36:54 -0000 1.390
+++ ltmain.in 14 Mar 2004 20:57:21 -0000
@@ -3894,6 +3895,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.
@@ -3903,7 +3905,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
@@ -3923,9 +3925,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
@@ -3951,7 +3953,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"