Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Cygwin and mingw-gcc

Cygwin and mingw-gcc

From: Magnus Holmgren <magnushol_at_gmail.com>
Date: Fri, 03 Jun 2011 16:02:53 +0200

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)
_at__at_ -234,6 +234,10 _at__at_
     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*)
_at__at_ -323,7 +327,7 _at__at_
    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
Received on 2011-06-03

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy