Since picking up my gp2x, I've been annoyed at the lack of a standard set of compilers and libraries. There's a complete lack of consensus. So, instead of complaining about it I've decided to do something about it:
http://www.oopo.net/consoledev - Look for the 'newtoolchain' package.
This is a perl script that will download, patch, and compile binutils-2.16.1, gcc-4.0.2, glibc-2.3.5, zlib-1.2.3, jpeg-6b, libpng-1.2.8, freetype-2.1.10, mikmod-3.1.11, tremor-svn (ogg support), SDL-1.2.9-paeryn, SDL_image-1.2.4, SDL_ttf-2.0.7, smpeg-0.4.4, SDL_mixer-1.2.6, SDL_gfx-2.0.13, libxml2-2-6.23 and SDL_svg-1.1.9.
Each package is compiled for a gp2x target - this means you can use gp2x-gcc to compile. It also puts everything into $GP2XDEV, which defaults to /usr/local/gp2xdev. This lets you do stuff like give configure a --with-sdl-prefix=$GP2XDEV. If you're familiar with my ps2dev and pspdev toolchains this works very similar. In fact, the same script will build those toolchains for you as well.
It should build fine under any unix-like environment. This includes cygwin and osx.
Take a look at the included README and README.GP2X files for more information.
[EDIT: Updated package.]
http://www.oopo.net/consoledev - Look for the 'newtoolchain' package.
This is a perl script that will download, patch, and compile binutils-2.16.1, gcc-4.0.2, glibc-2.3.5, zlib-1.2.3, jpeg-6b, libpng-1.2.8, freetype-2.1.10, mikmod-3.1.11, tremor-svn (ogg support), SDL-1.2.9-paeryn, SDL_image-1.2.4, SDL_ttf-2.0.7, smpeg-0.4.4, SDL_mixer-1.2.6, SDL_gfx-2.0.13, libxml2-2-6.23 and SDL_svg-1.1.9.
Each package is compiled for a gp2x target - this means you can use gp2x-gcc to compile. It also puts everything into $GP2XDEV, which defaults to /usr/local/gp2xdev. This lets you do stuff like give configure a --with-sdl-prefix=$GP2XDEV. If you're familiar with my ps2dev and pspdev toolchains this works very similar. In fact, the same script will build those toolchains for you as well.
It should build fine under any unix-like environment. This includes cygwin and osx.
Take a look at the included README and README.GP2X files for more information.
[EDIT: Updated package.]