?mode=patch&uid=2011031519125224114
Open Patch: 2011031519125224114 (by stf)
+ stf
Votecheck 'core-strong': Missing 1 qualified vote(s) (clifford, fake, teha)
package/base/libtool/libtool.desc
package/base/libtool/parse-config
Stefan Fiedler:
        libtool: remove .la files in cross builds, build in stage 0

Stefan Fiedler:
        libtool: remove .la files in cross builds, build in stage 0

--- package/base/libtool/libtool.desc	(Revision 240)
+++ package/base/libtool/libtool.desc	(Revision 241)
@@ -41,7 +41,7 @@
 [L] GPL
 [S] Stable
 [V] 2.2.10
-[P] X --X-4----9 101.550
+[P] X 0-X-4----9 101.550
 
 [D] 2887863006 libtool-2.2.10.tar.gz ftp://ftp.gnu.org/pub/gnu/libtool/
 
--- package/base/libtool/parse-config	(Revision 240)
+++ package/base/libtool/parse-config	(Revision 241)
@@ -0,0 +1,18 @@
+# On cross-builds libtool gets everything, really everything that is
+# possible mess up, messed up - seriously. Just not installing the
+# annoying .la-hell already helps.
+#
+libtool_remove_la()
+{
+	# A simple:
+	# var_append INSTALL_WRAPPER_FILTER '|' "sed -e 's,.*$root/.*lib.*\.la,/tmp/weg.la,'"
+	# didn't cut it, as some packages run some libtool finalization after the files
+	# got installed, and error out if the files are translated away, ...
+
+	grep '\.la$' $builddir/flist.txt |
+        while read f; do
+                rm -fv "$root/$f"
+        done
+	var_append flistdel '|' '.*\.la'
+}
+[ $stagelevel -lt 3 ] && hook_add postflist 5 libtool_remove_la

[Download this patch]