* Marc Espie wrote on Sun, Dec 18, 2005 at 05:28:03PM CET:
> On OpenBSD at least, once gcc is built and installed, there is no need
> to look at potential directories...
> This reduces libtool search path from 10 entries to 2 on a typical
> OpenBSD system...
> considering that this can be used in some tight loops, this is a
> worthwhile optimisation...
> No idea whether this makes sense on other systems, or should be
> limited to the case openbsd part of the configure script...
Probably even ok for other systems as well. For 'libtool' scripts that
don't leave the build tree this looks like a very good idea; for
/usr/bin/libtool this would not be so good -- people expect to create
those directories and not have to reinstall libtool.
You could even go a bit further and strip out duplicates.
Since not strictly a bugfix, I'll play safe though and won't consider
this for 1.5.22, which I'm trying to get done today..
> +@@ -8240,6 +8240,13 @@ if test "$GCC" = yes; then
> + else
> + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
> + fi
> ++for i in $tmp
> ++ test -d $i && sys_lib_search_path_spec="$sys_lib_search_path_spec $i"
> + need_lib_prefix=unknown
> + hardcode_into_libs=no