[Top] [All Lists]

Re: forcing most functions of libiberty in plugin-enabled cc1

Subject: Re: forcing most functions of libiberty in plugin-enabled cc1
From: "H.J. Lu"
Date: Thu, 26 Nov 2009 22:49:32 -0800
On Thu, Nov 26, 2009 at 10:40 PM, Basile STARYNKEVITCH
<basile@xxxxxxxxxxxxxxxxx> wrote:
> H.J. Lu wrote:
>> On Thu, Nov 26, 2009 at 11:53 AM, Basile STARYNKEVITCH
>> <basile@xxxxxxxxxxxxxxxxx> wrote:
>>> Rainer Orth wrote:
>>>> Basile STARYNKEVITCH <basile@xxxxxxxxxxxxxxxxx> writes:
>>>>> The answer use --whole-archive is not adequate, unless the
>>>>> --whole-archive
>>>>> option is available on every system on which GCC wants to permit
>>>>> plugins.
>> Why not build/install libiberty.so for plugin.
> I am not sure to understand your proposal (which seems ambigous).
> The good way would be, when GCC has plugin enabled, to install libiberty.so
> and to have *cc1 linked* to this shared library. Unfortunately I believe
> this solution has been considered and not accepted (because it would add yet
> another dependency to executing cc1).
> What won't work is to install libiberty.so but still have cc1 linking the
> static libiberty.a, as explained in
> http://gcc.gnu.org/ml/gcc/2009-07/msg00166.html
> So what did you (H.J.Lu) meant by "install libiberty for the plugin"?

You can install libiberty.so without linking it against cc1 while your
plugin can link against libiberty.so if needed.


<Prev in Thread] Current Thread [Next in Thread>