mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 05:59:10 +00:00
(svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default
This commit is contained in:
@@ -31,10 +31,10 @@ endif
|
||||
|
||||
# setup flags if none are defined
|
||||
ifndef CFLAGS_PPC
|
||||
CFLAGS_PPC:= -isysroot /Developer/SDKs/MacOSX10.3.9.sdk
|
||||
CFLAGS_PPC:= -isysroot /Developer/SDKs/MacOSX10.2.8.sdk
|
||||
endif
|
||||
ifndef LDFLAGS_PPC
|
||||
LDFLAGS_PPC:= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk
|
||||
LDFLAGS_PPC:= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.2.8.sdk
|
||||
endif
|
||||
ifndef PPC_CC
|
||||
PPC_CC:=powerpc-apple-darwin8-gcc-4.0.0
|
||||
@@ -105,6 +105,7 @@ $(error no x86 SDL lib found)
|
||||
CC_TARGET:=$(x86_CC)
|
||||
# clear the cached list of PPC libs
|
||||
LIBS:=
|
||||
OBJS:=
|
||||
CFLAGS:= $(CFLAGS_x86) -arch i386
|
||||
LDFLAGS:= $(LDFLAGS_x86)
|
||||
else
|
||||
|
@@ -17,7 +17,7 @@ void ShowMacAssertDialog ( const char *function, const char *file, const int lin
|
||||
{
|
||||
const char *buffer =
|
||||
[[NSString stringWithFormat:@"An assertion has failed and OpenTTD must quit.\n%s in %s (line %d)\n\"%s\"\n\nYou should report this error the OpenTTD developers if you think you found a bug.",
|
||||
function, file, line, expression] cStringUsingEncoding:NSASCIIStringEncoding];
|
||||
function, file, line, expression] cString];
|
||||
NSLog(@"%s", buffer);
|
||||
ShowMacDialog( "Assertion Failed", buffer, "Quit" );
|
||||
|
||||
|
Reference in New Issue
Block a user