Here, you are compiling for the gp2x. In general, when compiling for the GP2X, I always define NDEBUG, so that all the assert() calls vanish. Normally, the gp2xenv.sh scripts does this, by defined CFLAGS with "-DNDEBUG" (amongst many other things).
I suggest you source this script before...