[PATCH weston] automake: list static libraries before the shared ones

Emil Velikov emil.l.velikov at gmail.com
Mon Aug 15 14:00:36 UTC 2016


On 2 August 2016 at 12:03, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> On Fri, 22 Jul 2016 14:52:42 +0100
> Emil Velikov <emil.l.velikov at gmail.com> wrote:
>
>> From: Emil Velikov <emil.velikov at collabora.com>
>>
>> The linker processes those in the order that they are given. Thus
>> as-it we can get unresolved symbols.
>>
>> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
>> ---
>> Some places in weston already follow this approach, and although I've
>> not had a problem it'll be nice to fix things.
>>
>> Noticed while looking at the libweston link issues.
>> ---
>>  Makefile.am | 25 +++++++++++++------------
>>  1 file changed, 13 insertions(+), 12 deletions(-)
>
> Hi Emil,
>
> I always thought that libtool linked the dependencies automatically
> based on the .la files.
>
Some people suggest "for" while others "against" adding the
dependencies in the static libraries. In the former case libtool
cannot do anything, so maybe weston is using the latter approach ? In
either case, keeping the shared libs at the end works in both cases
:-)

> R-b me and pushed anyway:
>    78a3637..6735145  master -> master
>

Thanks
Emil


More information about the wayland-devel mailing list