Hi Helmut, I forwarded your patch to upstream, who requested changes that keep the conditional for cross-building. Maybe you'd like to comment on the pull request with your thoughts in case you disagree, since I am not as familiar with cross building as you are.
https://github.com/luanti-org/luanti/pull/16030 Best, Travis