From f71c873c138afb113a0e513253b71091d7e4e965 Mon Sep 17 00:00:00 2001 From: azaballa Date: Mon, 18 Sep 2006 00:08:40 +0000 Subject: [PATCH] Added GP2X specific optimization flags. Just trying to squeeze everything I can out of the little guy. Also corrected a minor typo in the GP2X cross-compile check case. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1130 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/configure | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stella/configure b/stella/configure index 9076e508a..6c3bd0b96 100755 --- a/stella/configure +++ b/stella/configure @@ -555,7 +555,7 @@ if test -n "$_host"; then psp) ;; gp2x) - echo "Cross-compiling to $_host, forcing static build, and disabling openGL." + echo "Cross-compiling to $_host, forcing static build, and disabling OpenGL." _build_static=yes _build_gl=no ;; @@ -847,12 +847,13 @@ case $_host_os in DEFINES="$DEFINES -Dmain=SDL_main -DPSP -DBSPF_PSP -DPSP_DEBUG" ;; gp2x) - CXXFLAGS="-O2 -finline-functions" + # -O3 hangs the GP2X, do not use. + CXXFLAGS="-O2 -finline-functions -mtune=arm940t" DEFINES="$DEFINES -DBSPF_GP2X -DGP2X -DHAVE_GETTIMEOFDAY -DHAVE_INTTYPES" MODULES="$MODULES $SRC/gp2x" #If PNG_CFLAGS is specified, include it. - #This saves the user the step of having to specify CXXFLAGS beforehand. + #This saves the user a step of having to specify CXXFLAGS beforehand. if [ -n $PNG_CFLAGS ]; then INCLUDES="$INCLUDES $PNG_CFLAGS -I$SRC/gp2x" else