[Geany] [PATCH] cross-compile issues.
Yura Siamashka
yurand2 at xxxxx
Tue Feb 19 20:14:14 UTC 2008
Hi
On Tue, 2008-02-19 at 10:00 -0600, Jeff Pohlmeyer wrote:
> On Feb 18, 2008 6:25 PM, Yura Siamashka <yurand2 at gmail.com> wrote:
>
> > 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"]
No, It is test if $host contains word "mingw" to enable/disable windows
specific things.
>
> And then maybe something like:
>
> case "${host_os}" in
> mingw*)
> # ...
> ;;
> esac
>
> to test for mingw...
Thanks, it worked.
Here is updated version of the patch.
--
Best regards,
Yura Siamashka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross-compile-mingw32.patch
Type: text/x-patch
Size: 6826 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080219/bd6dadf1/attachment.bin>
More information about the Users
mailing list