[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: include_expsyms clobbers user files.
From: |
Ralf Wildenhues |
Subject: |
Re: include_expsyms clobbers user files. |
Date: |
Thu, 29 Sep 2005 17:24:47 +0200 |
User-agent: |
Mutt/1.5.11 |
Hi Peter,
* Peter Ekberg wrote on Wed, Sep 28, 2005 at 06:33:41PM CEST:
> On Wed, Sep 28, 2005 at 11:03:49AM +0200, Ralf Wildenhues wrote:
> > * Peter Ekberg wrote on Tue, Sep 27, 2005 at 02:13:46PM CEST:
> > > * Ralf Wildenhues wrote on Sunday, September 25, 2005 15:10 CEST:
> > > >
> > > > That's just because you try to avoid any extra copy, which requires
> > > > quite some logic, as seen in your proposed patch.
> > >
> > > I you don't mind the extra copy, here's a patch which does that instead.
> >
> > Hmm. The improved simplicity is very appealing. However, I think the
> > *.uexp file should be removed after linking (see $delfiles).
>
> Fixed in this patch, I also cleaned up the temporary files used to
> filter the dll symbols.
Great!
> > > > I tried hard to find an error in the patch, but failed.
> > > > Please install, I think it's ok.
> > >
> > > Yes, I tested thoroughly, it was a mess.
> >
> > I'm sorry.
>
> No problem, a mess/maze once in a while can be fun.
Hehe.
> > Well, which approach do you like better? I'd have a slight preference
> > for this one, but don't care too much.
>
> I can certainly live without the entangled maze that was the first attempt.
OK then. The patch looks good, please install after looking at the
following miniscule nit. Thank you!
Cheers,
Ralf
> * libltdl/config/ltmain.m4sh (func_mode_link): Don't modify
> user provided symbols file. Adjust removal of temporary files
> and also remove temporary files used during symbols file
> filtering.
> Index: libltdl/config/ltmain.m4sh
> ===================================================================
> RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v
> retrieving revision 1.11
> diff -u -r1.11 ltmain.m4sh
> --- libltdl/config/ltmain.m4sh 25 Sep 2005 07:35:58 -0000 1.11
> +++ libltdl/config/ltmain.m4sh 28 Sep 2005 15:11:12 -0000
> @@ -4932,6 +4932,13 @@
> # Use standard objects if they are pic
> test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e
> "$lo2o" | $NL2SP`
>
> + delfiles=
> + if test -n "$export_symbols" && test -n "$include_expsyms"; then
You _could_ write `test -n "$export_symbols$include_expsyms"' :)
> + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
> + export_symbols="$output_objdir/$libname.uexp"
> + delfiles="$delfiles $export_symbols"
> + fi
> +
> orig_export_symbols=
> case $host_os in
> cygwin* | mingw*)
*snip*
- RE: include_expsyms clobbers user files., Peter Ekberg, 2005/09/22
- Re: include_expsyms clobbers user files., Ralf Wildenhues, 2005/09/25
- Re: include_expsyms clobbers user files., Peter Ekberg, 2005/09/27
- Re: include_expsyms clobbers user files., Ralf Wildenhues, 2005/09/28
- Re: include_expsyms clobbers user files., Peter Ekberg, 2005/09/28
- Re: include_expsyms clobbers user files.,
Ralf Wildenhues <=
- Re: include_expsyms clobbers user files., Peter Ekberg, 2005/09/29
- Re: include_expsyms clobbers user files., Ralf Wildenhues, 2005/09/29
- Re: include_expsyms clobbers user files., Ralf Wildenhues, 2005/09/30