[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automake warning using lib_LTLIBRARIES
From: |
Roger Leigh |
Subject: |
Re: automake warning using lib_LTLIBRARIES |
Date: |
Sat, 26 Jan 2002 13:17:29 +0000 |
User-agent: |
Mutt/1.2.5i |
On Sat, Jan 26, 2002 at 01:37:26PM +0100, Alexandre Duret-Lutz wrote:
> If Automake sees `dir_PRIMARY = fubar' it knows that it must
> output some rules to build `fubar', even if `dir_PRIMARY' is
> defined conditionally.
>
> However if it sees `dir_PRIMARY = @fubar@', Automake can't guess
> what address@hidden@' will be substituted with, and can't output any
> rule to build those unknown targets. That's where the
> `EXTRA_PRIMARY' helps: it list those targets for which Automake
> should output build rules.
>
> Now, you're right that with most primaries adding a superfluous
> EXTRA_PRIMARY shouldn't hurt, that's like telling twice to
> Automake you need building rules for the listed targets.
>
> *_LTLIBRARIES is different because in order to build the library
> you need to know where it will be installed (and pass the
> appropriate -rpath option to libtool). That means you can't
> install a library in two different places.
>
> >From `foo_LTLIBRARIES = mumble.la' Automake knows that
> `mumble.la' will be installed in `$(foodir)'; but from
> `EXTRA_LTLIBRARIES = mumble.la' it cannot know where the
> `mumble.la' will be installed, it could be somewhere else (so
> this justifies the error message). In the latter case, you have
> to play some _LDADD trickery to add the right -rpath flag
> manually, as said in the Automake manual.
Thanks, that really explains it well. I was using -rpath too, so found
the error a bit confusing.
Many thanks,
Roger
--
Roger Leigh
** Registration Number: 151826, http://counter.li.org **
Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848 available on public keyservers
pgp6ZE49xPrro.pgp
Description: PGP signature