summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-02-11 16:28:00 +0000
committertruelight <truelight@openttd.org>2007-02-11 16:28:00 +0000
commit53785810c8abb8a81f322536fe08a5a0e3cf9017 (patch)
treea80f0bfecab1f32d0d6f8a699498e8fe1e803ef6 /config.lib
parentd84e14f55f69a5cfe1bacefa22ebf769d30007d0 (diff)
downloadopenttd-53785810c8abb8a81f322536fe08a5a0e3cf9017.tar.xz
(svn r8678) [PSP] -Add: added LIBS and CFLAGS needed to compile PSP
-Fix: PSP needs to link with gcc, not with g++ (don't ask) -Fix: PSP doens't support threads
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index 63bc9f04b..281f9d368 100644
--- a/config.lib
+++ b/config.lib
@@ -606,6 +606,9 @@ make_cflags_and_ldflags() {
# Each debug level reduces the optimalization by a bit
if [ $enable_debug -ge 1 ]; then
CFLAGS="$CFLAGS -g -D_DEBUG"
+ if [ "$os" = "PSP" ]; then
+ CFLAGS="$CFLAGS -G0"
+ fi
fi
if [ $enable_debug -ge 2 ]; then
CFLAGS="$CFLAGS -fno-inline"
@@ -668,6 +671,9 @@ make_cflags_and_ldflags() {
if [ "$os" = "PSP" ]; then
CFLAGS="$CFLAGS -I`$psp_config -p`/include"
LDFLAGS="$LDFLAGS -L`$psp_config -p`/lib"
+
+ CFLAGS="$CFLAGS -fno-exceptions -fno-rtti -D_PSP_FW_VERSION=150"
+ LIBS="$LIBS -D_PSP_FW_VERSION=150 -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -lm"
fi
if [ "$os" = "MORPHOS" ]; then