automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool libraries requiring other libraries


From: Diego Elio Pettenò
Subject: Re: libtool libraries requiring other libraries
Date: Wed, 17 Jul 2013 08:57:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130716 Thunderbird/17.0.7

Okay, Robert already answered but...

On 16/07/2013 15:56, Steffen Sledz wrote:
>       FOO_LDFLAGS="-L$with_libfoo_path/lib -lfoo"
[...]
> progbar_LDFLAGS = $(FOO_LDFLAGS)

This is simply wrong, whether or not it works after adding LT_INIT.

-lfoo is a library not an LDFLAG.

It should be passed to _LDADD not to _LDFLAGS.

What happens is that if you pass it as LDFLAGS it's going to be
_preprended_ to the list of object files, and linkers set to link only
needed libraries will ignore it altogether.

Don't misuse LDFLAGS please. It just becomes a pain in the neck for
distributions.

-- 
Diego Elio Pettenò — Flameeyes
address@hidden — http://blog.flameeyes.eu/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]