libtool-patches
[Top][All Lists]
Advanced

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

Re: [PATCH 1/2] reorganize parsing of --mode=finish arguments


From: Charles Wilson
Subject: Re: [PATCH 1/2] reorganize parsing of --mode=finish arguments
Date: Thu, 12 Aug 2010 00:58:10 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

On 8/12/2010 12:12 AM, Paolo Bonzini wrote:
> * libltdl/config/ltmain.m4sh (func_mode_finish): Split arguments for
> directories and *.la files.  Add .la files for all directories.
> ---
>  libltdl/config/ltmain.m4sh |  117 
> ++++++++++++++++++++++++++------------------
>  1 files changed, 70 insertions(+), 47 deletions(-)
> +      if test -d "$opt"; then
> +     func_append libdirs " $opt"
> +     for file in "$opt"/*.la; do
> +       test -f "$file" || continue
> +       if func_lalib_unsafe_p "$file"; then
> +         func_append libs " $file"
> +       else
> +         func_warning "\`$file' is not a valid libtool archive"
> +          fi
> +     done

I don't think --mode=finish should modify *all* .la files found in
directories passed to it.  I think it should register directories with
ld.so (as it currently does) but only fixup .la files passed explicitly
on the command line.

To do otherwise is O(N^2) behavior: every time you install a new libtool
library, you "fix" ALL .la files in $prefix/lib (or attempt to) -- even
if most of them don't need it, or were already fixed when THEY were
installed.

--
Chuck



reply via email to

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