Re: libtool libraries requiring other libraries

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

 



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

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf





[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux