[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mageia-dev
Subject:    Re: [Mageia-dev] %ldflags, a shared library (xchat-plugin)
From:       Kamil Rytarowski <n54 () gmx ! com>
Date:       2011-11-28 9:36:03
Message-ID: 4ED35603.2030009 () gmx ! com
[Download RAW message or body]

On 28.11.2011 09:38, Guillaume Rousse wrote:
> Le 28/11/2011 05:42, Kamil Rytarowski a écrit :
>> So I've extracted the parameters for gcc from %ldflags and removed
>> -Wl,--no-undefined.
>> The current line is:
>> gcc -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1
>> -Wl,--build-id -Wl,--enable-new-dtags -Wl,--export-dynamic -Wall -O1
>> -shared -fPIC -I. xchat-drakcowsay.c -o xchat-drakcowsay.so
>>
>> Is it right (for a shared library/ plugin)?
> As plugin symbols are resolved at runtime, you can't use 
> -Wl,--no-undefined to build them. This is explained here:
> http://wiki.mandriva.com/en/Underlinking
Thanks!
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic