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. Helmut
Hi 2016-01-25 22:02 Helmut Grohne: 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.
Hi, 2017-10-31 20:43 Manuel A. Fernandez Montecelo: I just uploaded an NMU with the patch applied, to delayed/15. I pushed the changes to the repository. If you disagree, please tell me and I can cancel the NMU, and can revert the changes as well; or you can do it yourself if you prefer. If it's OK for you, I can re-schedule it to happen sooner. Let's hope that this push helps to move things forward to make possible to cross-compile this important package :) Cheers and thanks for maintaining this package!
Agreed. Sorry for the late reply. Thanks, -- Tatsuya Kinoshita
2017-12-12 15:46 GMT+01:00 Tatsuya Kinoshita <tats@debian.org>: Re-scheduled, thanks!