[Geany] [PATCH] cross-compile issues.

Jeff Pohlmeyer yetanothergeek at xxxxx
Tue Feb 19 16:00:10 UTC 2008


On Feb 18, 2008 6:25 PM, Yura Siamashka <yurand2 at gmail.com> wrote:

> Also I used:
> test "x$target" != "x${target##*mingw}";
> to detect windows cross-compile, but perhaps ## syntax is bashism.
> Anyone know how to check it better?

If you just need to test for the general case of
cross compiling, I think this should work:

[test "x${cross_compiling}" = "xyes"]

And then maybe something like:

case "${host_os}" in
  mingw*)
  # ...
  ;;
esac

to test for mingw...

 - Jeff



More information about the Users mailing list