[poky] [patch] autotools: Remove .la files by default

Colin Walters walters at verbum.org
Tue Mar 29 10:04:09 PDT 2011


On Tue, Mar 29, 2011 at 12:29 PM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
>
> I can do better than that, we have some limitations in the way .conf
> files are parsed compared to .bbclass files. If you create a
> "localchanges.bbclass" containing:

Of course I can code it locally, but I think this mechanism would be
of value to other people creating systems, and hence my proposal to do
it upstream.

> and then do INHERIT += "localchanges"

This appears to work, thanks.

> Right, but with our build environment, this really becomes a non-issue

I agree it's a non-issue for building the OS.  But it will be an issue
for people who *after* having the OS installed, want to temporarily
override system libraries with other versions.   And there's just no
sane way to fix it without just nuking the files from the OS.

> (and I've been trying to get patches upstream which stop -L/usr/lib
> being injected anyway as that is a libtool bug).

I think a better fix would actually be an automake option to stop it
from even installing them, and I looked into this (it's not trivial,
and effectively requires disabling "make uninstall"), and even if the
fix landed every project would have to be updated for it.



More information about the poky mailing list