opsss osx fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1465 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-12-09 22:07:11 +00:00
parent 8fdfe2583c
commit ea67c4eb0a
1 changed files with 2 additions and 2 deletions

View File

@ -21,14 +21,14 @@ def CheckFramework(context, name):
if (platform.system() == 'darwin'):
context.Message( '\nLooking for framework %s... ' % name )
lastLINKFLAGS = context.env['LINKFLAGS']
context.env.Append(LINKFLAGS = '-Wl,-framework,%s' % name)
context.env.Append(LINKFLAGS = [ '-framework', name ])
ret = context.TryLink("""
int main(int argc, char **argv) {
return 0;
}
""", '.c')
if not ret:
context.env.Replace(LIBS = lastLIBS)
context.env.Replace(LINKFLAGS = lastLINKFLAGS)
return ret