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
flamee...@flameeyes.eu — http://blog.flameeyes.eu/

Reply via email to