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

Guillaume Rousse guillomovitch at gmail.com
Mon Nov 28 09:38:06 CET 2011


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
-- 
BOFH excuse #310:

asynchronous inode failure


More information about the Mageia-dev mailing list