Hi,
I'm trying to make tools/configure support the new mingw cross-compiler on
Cygwin (the package mingw-gcc-core, currently based on gcc 4.5.2). After some
testing, I came up with this patch:
Index: ../tools/configure
===================================================================
--- ../tools/configure (revision 29926)
+++ ../tools/configure (working copy)
@@ -234,6 +234,10 @@
LDOPTS="$LDOPTS -mconsole"
output="$output.exe"
winbuild="yes"
+ if [ -f "/usr/bin/i686-pc-mingw32-gcc.exe" ]; then
+ prefixtools i686-pc-mingw32-
+ gccchoice=4.5.2
+ fi
;;
MINGW*)
@@ -323,7 +327,7 @@
char *varp = (char *)&var;
*varp=1;
- printf("%d\n", var);
+ printf("%d", var);
return 0;
}
EOF
Does this look reasonable? I haven't done much shell scripting, and I'm not very
familiar with the configure script... Haven't tested it for other targets just
yet, so I don't know if I broke something.
By the way, without that printf change, I get this message: ": integer
expression expected [: 1".
--
Magnus