mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Only use "-fPIC" for compiling objects that will be part of dynamic libs. Make SConscripts inherit the compile flags from the top level instead of overriding them.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@329 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -1,22 +1,28 @@
|
||||
Import('env')
|
||||
import sys
|
||||
|
||||
files = ["DSPHandler.cpp",
|
||||
"MailHandler.cpp",
|
||||
"main.cpp",
|
||||
"Config.cpp",
|
||||
"Globals.cpp",
|
||||
"PCHW/AOSoundStream.cpp",
|
||||
"PCHW/Mixer.cpp",
|
||||
"UCodes/UCode_AX.cpp",
|
||||
"UCodes/UCode_CARD.cpp",
|
||||
"UCodes/UCode_InitAudioSystem.cpp",
|
||||
"UCodes/UCode_Jac.cpp",
|
||||
"UCodes/UCode_ROM.cpp",
|
||||
"UCodes/UCodes.cpp",
|
||||
"UCodes/UCode_Zelda.cpp",
|
||||
]
|
||||
dspenv=env.Copy(LINKFLAGS = "`pkg-config --libs ao` ")
|
||||
files = [
|
||||
"DSPHandler.cpp",
|
||||
"MailHandler.cpp",
|
||||
"main.cpp",
|
||||
"Config.cpp",
|
||||
"Globals.cpp",
|
||||
"PCHW/AOSoundStream.cpp",
|
||||
"PCHW/Mixer.cpp",
|
||||
"UCodes/UCode_AX.cpp",
|
||||
"UCodes/UCode_CARD.cpp",
|
||||
"UCodes/UCode_InitAudioSystem.cpp",
|
||||
"UCodes/UCode_Jac.cpp",
|
||||
"UCodes/UCode_ROM.cpp",
|
||||
"UCodes/UCodes.cpp",
|
||||
"UCodes/UCode_Zelda.cpp",
|
||||
]
|
||||
|
||||
dspenv = env.Copy()
|
||||
dspenv.Append(
|
||||
CXXFLAGS = ' ' + ' '.join([ '-fPIC', '`pkg-config --cflags ao`' ]),
|
||||
LINKFLAGS = ' ' + ' '.join([ '`pkg-config --libs ao`' ])
|
||||
)
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
dspenv.SharedLibrary("../../../../Binary/mac/Plugins/dsphle.so", files, LIBS = ["common"])
|
||||
|
Reference in New Issue
Block a user