aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heider2009-03-27 14:12:42 +0000
committerAndre Heider2009-03-27 14:12:42 +0000
commit32495abc384d043d6717e55053aac17e2a746a46 (patch)
treeb3793de14b1cb9d5b2e08a05b20d379388d057d1
parent07d3ae07aca1ca7c7d6437365c04e061d6a6eb43 (diff)
downloadscummvm-rg350-32495abc384d043d6717e55053aac17e2a746a46.tar.gz
scummvm-rg350-32495abc384d043d6717e55053aac17e2a746a46.tar.bz2
scummvm-rg350-32495abc384d043d6717e55053aac17e2a746a46.zip
Improved configure support for the GP2X port.
svn-id: r39708
-rw-r--r--backends/platform/gp2x/gp2x-mem.cpp (renamed from backends/platform/gp2x/gp2x-mem.c)0
-rwxr-xr-xconfigure8
2 files changed, 7 insertions, 1 deletions
diff --git a/backends/platform/gp2x/gp2x-mem.c b/backends/platform/gp2x/gp2x-mem.cpp
index ec73922bf7..ec73922bf7 100644
--- a/backends/platform/gp2x/gp2x-mem.c
+++ b/backends/platform/gp2x/gp2x-mem.cpp
diff --git a/configure b/configure
index cf3eb30a31..319f11d92d 100755
--- a/configure
+++ b/configure
@@ -784,6 +784,7 @@ ppc-amigaos)
gp2x)
_host_os=gp2x-linux
_host_cpu=arm
+ _host_alias=arm-open2x-linux
;;
i586-mingw32msvc)
_host_os=mingw32msvc
@@ -1177,16 +1178,21 @@ if test -n "$_host"; then
;;
gp2x)
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
- DEFINES="$DEFINES -DUNIX -DGP2X -DUSE_ARM_SMUSH_ASM"
+ DEFINES="$DEFINES -DUNIX -DGP2X -DNDEBUG -DUSE_ARM_SMUSH_ASM"
+ CXXFLAGS="$CXXFLAGS -march=armv4t"
+ LDFLAGS="$LDFLAGS -static"
_endian=little
_need_memalign=yes
type_1_byte='char'
type_2_byte='short'
type_4_byte='int'
+ _ar="$_host_alias-ar cru"
+ _ranlib=$_host_alias-ranlib
add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1'
add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1'
_backend="gp2x"
_build_hq_scalers="no"
+ _mt32emu="no"
;;
neuros)
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"