bug-libtool
[Top][All Lists]
Advanced

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

Re: general question on "gcc -print-search-dirs" multilib problem


From: Ralf Wildenhues
Subject: Re: general question on "gcc -print-search-dirs" multilib problem
Date: Mon, 18 Sep 2006 09:36:39 +0200
User-agent: Mutt/1.5.13 (2006-09-01)

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




reply via email to

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