Hi 2016-01-25 22:02 Helmut Grohne:
Source: w3m Version: 0.5.3-26 User: heml...@debian.org
Helmut: wrong user...
Usertags: rebootstrap Hi, w3m fails to cross build from source for a number of reasons. Most immediately, configure is run without --host and thus configures for the build architecture. Even though configure has code for detecting the name of pkg-config, it still falls back to calling it directly causing it to miss libraries such as imlib2. I am attaching a patch for these issues. Even after applying it, the build fails due to executing ./mknames. Since mknames is executed during build and not installed into any package, it should be compiled with the build architecture compiler. For this to work, it needs to stop #including things such as config.h however. Also object files such as Str.o need to be built for both architectures. I haven't figured out the details yet, so my patch is only a partial solution. Hope it helps whomever is looking into cross compiling w3m at a later time.
Tatsuya, what do you think about applying this fix? Lots of packages build-depent on w3m (x11proto* and basic X libraries, mutt...), it would be nice to be able to cross-build it from other systems, for bootstrapping new architectures and similar scenarios. Cheers. -- Manuel A. Fernandez Montecelo <manuel.montez...@gmail.com>