(svn r3675) -Fix: [OSX] made the default gcc names for building universal binaries into the newest gcc for each target instead of hardcoding it for 4.0.0
authorbjarni
Sat, 25 Feb 2006 22:03:30 +0000
changeset 3086 92529b31a05b
parent 3085 cbcafb482b75
child 3087 05eb24edcfae
(svn r3675) -Fix: [OSX] made the default gcc names for building universal binaries into the newest gcc for each target instead of hardcoding it for 4.0.0
os/macosx/Makefile.setup
--- a/os/macosx/Makefile.setup	Sat Feb 25 21:25:23 2006 +0000
+++ b/os/macosx/Makefile.setup	Sat Feb 25 22:03:30 2006 +0000
@@ -54,7 +54,7 @@
 	LDFLAGS_PPC:= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.2.8.sdk
 endif
 ifndef PPC_CC
-	PPC_CC:=powerpc-apple-darwin8-gcc-4.0.0
+	PPC_CC:=$(shell ls /usr/bin/powerpc-apple-darwin*-gcc* | tail -n 1)
 endif
 ifndef CFLAGS_x86
 	CFLAGS_x86:= -isysroot /Developer/SDKs/MacOSX10.4u.sdk
@@ -63,7 +63,7 @@
 	LDFLAGS_x86:= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
 endif
 ifndef x86_CC
-	x86_CC:=i686-apple-darwin8-gcc-4.0.0
+	x86_CC:=$(shell ls /usr/bin/i686-apple-darwin*-gcc* | tail -n 1)
 endif
 ifdef WITH_PNG
 	ifndef LIBPNG_PPC_CONFIG