Do not forget to append the LINKFLAGS. Replaced "-framework name" with "-Wl,-framework,name" because the space inside the option seems to confuse SCons.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@626 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Maarten ter Huurne 2008-09-23 00:11:33 +00:00
parent 866d15d3d8
commit 148fd7b96e
1 changed files with 5 additions and 4 deletions

View File

@ -45,7 +45,7 @@ if sys.platform == 'darwin':
linkFlags.append('-L/opt/local/lib') linkFlags.append('-L/opt/local/lib')
# Use frameworks instead of plain libs, when possible. # Use frameworks instead of plain libs, when possible.
linkFlags += [ linkFlags += [
'-framework %s' % framework '-Wl,-framework,%s' % framework
for framework in [ 'OpenGL', 'Cg' ] for framework in [ 'OpenGL', 'Cg' ]
] ]
else: else:
@ -64,6 +64,7 @@ if useSDL:
gfxenv.Append( gfxenv.Append(
CXXFLAGS = compileFlags, CXXFLAGS = compileFlags,
LINKFLAGS = linkFlags,
) )
gfxenv.SharedLibrary( gfxenv.SharedLibrary(