The first problem is that binutils 2.16.1 doesn't compile on MacOS X 10.5 (leopard). A bug in autoconf makes it erroneously detect .dSYM as the extension for executable files, when gcc is called with -g. The workaround is to set an explicit CFLAGS to the beginning of toolchain.sh, like so:
Code: Select all
#!/bin/bash
# toolchain.sh by Dan Peori ([email protected])
# automake fails on MacOS X 10.5 with -g flag
export CFLAGS="-O2"
## Enter the psptoolchain directory.
cd "`dirname $0`" || { echo "ERROR: Could not enter the psptoolchain directory."; exit 1; }
...snip...
Code: Select all
diff -burN binutils-2.16.1/gprof/Makefile.am binutils-psp/gprof/Makefile.am
--- binutils-2.16.1/gprof/Makefile.am 2004-11-30 18:20:48.000000000 +0100
+++ binutils-psp/gprof/Makefile.am 2007-08-13 03:51:51.000000000 +0200
@@ -38,6 +38,9 @@
diststuff: $(BUILT_SOURCES) info $(man_MANS)
+# This empty rule is a hack against gmake patched by Apple.
+%.o:%.m
+
.m.c:
awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
diff -burN binutils-2.16.1/gprof/Makefile.in binutils-psp/gprof/Makefile.in
--- binutils-2.16.1/gprof/Makefile.in 2004-11-30 18:20:48.000000000 +0100
+++ binutils-psp/gprof/Makefile.in 2008-05-26 12:24:11.000000000 +0200
@@ -774,6 +774,9 @@
diststuff: $(BUILT_SOURCES) info $(man_MANS)
+# This empty rule is a hack against gmake patched by Apple.
+%.o:%.m
+
.m.c:
awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
Code: Select all
if which sdl-config &> /dev/null; then { $(MAKE) -C tools/remotejoy/pcsdl all; } else { $(MAKE) -C tools/remotejoy/pc all; } fi