All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Delete all .la files?
@ 2015-12-23 21:41 ` Burton, Ross
  0 siblings, 0 replies; 17+ messages in thread
From: Burton, Ross @ 2015-12-23 21:41 UTC (permalink / raw)
  To: OE-core, OpenEmbedded Devel List

Hi,

So I've just done an oe-core world build with my latest .la-killer class
enabled (
https://github.com/rossburton/meta-ross/blob/master/classes/wipe-la.bbclass)
and the results are pretty good.  Basically this class hooks onto
do_install and simply deletes every *.la file it can find in ${D}, with an
opt-out if required.  .la files can cause rebuild problems if directories
move around and are mostly pointless on Linux anyway, so they can just be
deleted.

One recipe (opensp-native) needs to opt out of the .la deletion as
openjade-native for <redacted> reasons explicitly expects .la files to be
installed.  Some other desktop distros already strip out .la files so I
wouldn't be surprised if there's a patch floating around to solve this.

One recipe fails to build (gcc-sanitizers) as it expects to have built its
own libstdc++ so the recipe just deletes the source and drops in symlinks
to the libraries in the sysroot.  Works, but is nasty.   I could either opt
gcc out of la removal, or improve the fixup to make it actually link to the
installed libraries.  Or, merge the sanitisers into the main gcc recipe, as
I can't recall why they're separate anyway.

Apart from that, my world build was successful.

So in the new year I plan on submitting a renamed version of this class to
oe-core and adding it to INHERIT_DISTRO.  Any comments?

Ross


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-01-04 19:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-23 21:41 [RFC] Delete all .la files? Burton, Ross
2015-12-23 21:41 ` Burton, Ross
2015-12-23 22:49 ` Phil Blundell
2015-12-24  9:09   ` [OE-core] " Burton, Ross
2015-12-24  9:09     ` Burton, Ross
2015-12-29 11:21     ` Phil Blundell
2016-01-02 21:01       ` [OE-core] " Burton, Ross
2016-01-02 21:01         ` Burton, Ross
2015-12-28 13:16 ` Koen Kooi
2016-01-04  8:48 ` Clemens Lang
2016-01-04 16:50   ` [OE-core] " Burton, Ross
2016-01-04 16:50     ` Burton, Ross
2016-01-04 17:28 ` Burton, Ross
2016-01-04 17:28   ` Burton, Ross
2016-01-04 18:01   ` Christopher Larson
2016-01-04 18:01     ` [oe] " Christopher Larson
2016-01-04 19:01   ` Phil Blundell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.