Hello Michael,

* Michael Haubenwallner wrote on Wed, Sep 13, 2006 at 05:07:04PM CEST:
> 
> Based on recent thread on AC_LIBTOOL_SYS_DYNAMIC_LINKER:
> 
> I wonder why it is actually necessary for libtool to query system
> library search dirs from gcc, because when gcc is used as linker, it
> will know where to get system libs from.
> Are there exceptions to this behaviour, which libtool has to work
> around ?

Libtool looks for and uses information provided by installed libtool
library files (*.la).  In order to be able to find them, it has to know
the default search path of the link editor (see sys_lib_search_path_spec).

Libtool also hardcodes paths to libraries that end up in places not
found by default by the runtime linker; therefore, it also has to know
the default search path of the runtime linker
(sys_lib_dlsearch_path_spec).

Hope that helps.

Cheers,
Ralf


_______________________________________________
Bug-libtool mailing list
Bug-libtool@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-libtool

Reply via email to