Created attachment 368728 [details, diff] libwebp-eautoreconf.patch Cross-compiling libwebp fails during the install stage because libtool tries to relink the libraries and adds -L/usr/lib to the flags. Simply running eautoreconf fixes it because I think we patch libtool not to do this. We're half-way to requiring an eautoreconf anyway because the current ebuild modifies configure. See attached patch.
Created attachment 368730 [details] build.log Here's the failing build log.
Created attachment 368802 [details, diff] Run elibtoolize Does running elibtoolize help? That's a less-severe change than a full autoreconf.
That does work. I just thought eautoreconf was generally a good idea when it works as it's more likely to fix other things. Is there a downside except for an extra few seconds build time?
(In reply to James Le Cuirot from comment #3) It also pulls in several additional build-time dependencies: autoconf, automake, perl, etc. In general, it is preferable not to run eautoreconf if it is reasonable to avoid it.
+ 26 Jan 2014; Mike Gilbert <floppym@gentoo.org> libwebp-0.4.0.ebuild: + Call elibtoolize to fix relinking when cross-compiling, bug 499270 by James Le + Cuirot.