[PATCH weston sdk v2 1/8] weston.pc: Add dependencies for pixman-1 and xkbcommon

Daniel Stone daniel at fooishbar.org
Fri Jul 5 17:56:05 PDT 2013


Hi,

On 5 July 2013 20:35, Thiago Macieira <thiago.macieira at intel.com> wrote:
> First, it mentions that Requires.private is *not* used in dynamic linking.
> Then it changes its mind with that last sentence, which is cryptic.
>
> In any case, the actual behaviour is that Requires.private is used in dynamic
> linking. It adds -I flags, but no -L or -l flags.

Sure, it only adds -l and -L for static linking, because .a archives
don't have any equivalent of ELF's DT_NEEDED.  So if your libweston.so
links to libpixman.so, you need to add pixman in Requires.private,
because otherwise static linking of -lweston will fail with unresolved
symbols from pixman.

.la files were meant to solve this, but just introduced even more problems.

Cheers,
Daniel


More information about the wayland-devel mailing list