fixes for OSX

This commit is contained in:
Dave Murphy 2008-11-23 10:45:31 +00:00
parent 77c86ca69d
commit 9194e1619c
2 changed files with 32 additions and 4 deletions

View File

@ -1,3 +1,15 @@
diff -Nbaur gcc-4.2.4/Makefile.in gcc-4.2.4-ppc/Makefile.in
--- gcc-4.2.4/Makefile.in 2006-12-29 17:47:06.000000000 +0000
+++ gcc-4.2.4-ppc/Makefile.in 2008-11-23 10:37:09.000000000 +0000
@@ -341,7 +341,7 @@
# CFLAGS will be just -g. We want to ensure that TARGET libraries
# (which we know are built with gcc) are built with optimizations so
# prepend -O2 when setting CFLAGS_FOR_TARGET.
-CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+CFLAGS_FOR_TARGET = -O2 $(SYSROOT_CFLAGS_FOR_TARGET)
SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
diff -Nbaur gcc-4.2.4/config.sub gcc-4.2.4-ppc/config.sub
--- gcc-4.2.4/config.sub 2006-10-16 04:27:17.000000000 +0100
+++ gcc-4.2.4-ppc/config.sub 2008-10-18 05:11:48.000000000 +0100
@ -342,7 +354,7 @@ diff -Nbaur gcc-4.2.4/gcc/version.c gcc-4.2.4-ppc/gcc/version.c
the revision of your modified compiler. */
-#define VERSUFFIX ""
+#define VERSUFFIX " (devkitPPC release 16)"
+#define VERSUFFIX " (devkitPPC release 15)"
/* This is the location of the online document giving instructions for
reporting bugs. If you distribute a modified version of GCC,
@ -355,6 +367,18 @@ diff -Nbaur gcc-4.2.4/gcc/version.c gcc-4.2.4-ppc/gcc/version.c
/* The complete version string, assembled from several pieces.
BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */
diff -Nbaur gcc-4.2.4/libcpp/Makefile.in gcc-4.2.4-ppc/libcpp/Makefile.in
--- gcc-4.2.4/libcpp/Makefile.in 2008-05-19 15:28:07.000000000 +0100
+++ gcc-4.2.4-ppc/libcpp/Makefile.in 2008-11-23 10:37:37.000000000 +0000
@@ -196,7 +196,7 @@
# Dependency rule.
COMPILE.base = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(ALL_CFLAGS) -c
ifeq ($(DEPMODE),depmode=gcc3)
-COMPILE = $(COMPILE.base) -o $@ -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Po
+COMPILE = $(COMPILE.base) -o $@
else
COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \
$(depcomp) $(COMPILE.base)
diff -Nbaur gcc-4.2.4/libcpp/files.c gcc-4.2.4-ppc/libcpp/files.c
--- gcc-4.2.4/libcpp/files.c 2006-02-18 09:25:31.000000000 +0000
+++ gcc-4.2.4-ppc/libcpp/files.c 2008-10-18 05:11:49.000000000 +0100

View File

@ -9,10 +9,10 @@ PLATFORM=`uname -s`
case $PLATFORM in
Darwin )
CONFIG_EXTRA=env CFLAGS="-O -g -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc"
env CONFIG_EXTRA=CFLAGS="-O -g -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc"
;;
MINGW32* )
CONFIG_EXTRA=env CFLAGS="-D__USE_MINGW_ACCESS"
env CONFIG_EXTRA=CFLAGS="-D__USE_MINGW_ACCESS"
;;
esac
@ -27,7 +27,7 @@ if [ ! -f configured-binutils ]
then
$CONFIG_EXTRA ../../$BINUTILS_SRCDIR/configure \
--prefix=$prefix --target=$target --disable-nls --disable-shared --disable-debug \
--with-gcc --with-gnu-as --with-gnu-ld \
--with-gcc --with-gnu-as --with-gnu-ld --disable-dependency-tracking \
|| { echo "Error configuing ppc binutils"; exit 1; }
touch configured-binutils
fi
@ -99,6 +99,7 @@ then
--target=$target \
--with-newlib \
--prefix=$prefix\
--disable-denpendency-tracking \
2>&1 | tee gcc_configure.log
touch configured-gcc
fi
@ -122,6 +123,9 @@ cd $BUILDSCRIPTDIR
mkdir -p $target/newlib
cd $target/newlib
unset CFLAGS
unset LDFLAGS
if [ ! -f configured-newlib ]
then
$BUILDSCRIPTDIR/$NEWLIB_SRCDIR/configure \