New comment by pullmoll on void-packages repository https://github.com/void-linux/void-packages/pull/24991#issuecomment-695799019 Comment: So I merged your PR locally and tried `builddir/imwheel-1.0.0pre12/configure --help` It lists `--enable-gpm` which means that `--disable-gpm` should disable the check also for cross. However, it does not disable looking for `gpm.c` so I'm going to try to patch `configure.in` and rip out that entire section for `gpm-imwheel`. Also `jax/jax.c` needs a patch to not use `(int)` to cast a pointer, but `(intptr_t)` which is in `#include `. Long story short: I got it cross building now and will push it with the required patches fixes because I think it would take you a long time to figure the details. I hope this doesn't spoil it for you :)