[Mageia-dev] %ldflags, a shared library (xchat-plugin)

Kamil Rytarowski n54 at gmx.com
Mon Nov 28 10:36:03 CET 2011


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!


More information about the Mageia-dev mailing list