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:
@ -23,6 +23,7 @@ files = [
|
||||
'GUI/ConfigDlg.cpp',
|
||||
]
|
||||
compileFlags = [
|
||||
'-fPIC',
|
||||
'`wx-config --cppflags`',
|
||||
]
|
||||
linkFlags = [
|
||||
@ -58,9 +59,10 @@ if useSDL:
|
||||
compileFlags += [ '`sdl-config --cflags`', '-DUSE_SDL=1' ]
|
||||
linkFlags += [ '`sdl-config --libs`' ]
|
||||
|
||||
gfxenv = env.Copy(
|
||||
CXXFLAGS = ' '.join(compileFlags),
|
||||
LINKFLAGS = ' '.join(linkFlags),
|
||||
gfxenv = env.Copy()
|
||||
gfxenv.Append(
|
||||
CXXFLAGS = ' ' + ' '.join(compileFlags),
|
||||
LINKFLAGS = ' ' + ' '.join(linkFlags)
|
||||
)
|
||||
gfxenv.SharedLibrary(
|
||||
'../../../../Binary/%s/Plugins/zeroogl.so' % platform,
|
||||
|
Reference in New Issue
Block a user