mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -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,18 +1,25 @@
|
||||
Import('env')
|
||||
output = "../../../../Binary/linux/Plugins/dsplle.so"
|
||||
files = ["AOSoundStream.cpp",
|
||||
"disassemble.cpp",
|
||||
"gdsp_aram.cpp",
|
||||
"gdsp_ext_op.cpp",
|
||||
"gdsp_interface.cpp",
|
||||
"gdsp_interpreter.cpp",
|
||||
"gdsp_memory.cpp",
|
||||
"gdsp_opcodes.cpp",
|
||||
"gdsp_registers.cpp",
|
||||
"Globals.cpp",
|
||||
"opcodes.cpp",
|
||||
"Tools.cpp",
|
||||
"main.cpp",
|
||||
]
|
||||
env.Append(LINKFLAGS = " `pkg-config --libs ao`")
|
||||
env.SharedLibrary(output, files, LIBS = ["common"])
|
||||
|
||||
files = [
|
||||
"AOSoundStream.cpp",
|
||||
"disassemble.cpp",
|
||||
"gdsp_aram.cpp",
|
||||
"gdsp_ext_op.cpp",
|
||||
"gdsp_interface.cpp",
|
||||
"gdsp_interpreter.cpp",
|
||||
"gdsp_memory.cpp",
|
||||
"gdsp_opcodes.cpp",
|
||||
"gdsp_registers.cpp",
|
||||
"Globals.cpp",
|
||||
"opcodes.cpp",
|
||||
"Tools.cpp",
|
||||
"main.cpp",
|
||||
]
|
||||
|
||||
dspenv = env.Copy()
|
||||
dspenv.Append(
|
||||
CXXFLAGS = ' ' + ' '.join([ '-fPIC', '`pkg-config --cflags ao`' ]),
|
||||
LINKFLAGS = ' ' + ' '.join([ '`pkg-config --libs ao`' ])
|
||||
)
|
||||
dspenv.SharedLibrary(output, files, LIBS = ["common"])
|
||||
|
Reference in New Issue
Block a user