Commit 83155aa1 authored by Jose Fonseca's avatar Jose Fonseca

scons: Use .a suffix for MinGW.

This allows to build MinGW and MSVC within the same dir.
parent 529f86fb
...@@ -162,18 +162,16 @@ def generate(env): ...@@ -162,18 +162,16 @@ def generate(env):
# Some setting from the platform also have to be overridden: # Some setting from the platform also have to be overridden:
env['OBJPREFIX'] = '' env['OBJPREFIX'] = ''
env['OBJSUFFIX'] = '.o' env['OBJSUFFIX'] = '.o'
env['LIBPREFIX'] = 'lib'
env['LIBSUFFIX'] = '.a'
env['SHOBJPREFIX'] = '$OBJPREFIX' env['SHOBJPREFIX'] = '$OBJPREFIX'
env['SHOBJSUFFIX'] = '$OBJSUFFIX' env['SHOBJSUFFIX'] = '$OBJSUFFIX'
env['PROGPREFIX'] = '' env['PROGPREFIX'] = ''
env['PROGSUFFIX'] = '.exe' env['PROGSUFFIX'] = '.exe'
env['LIBPREFIX'] = '' env['LIBPREFIX'] = 'lib'
env['LIBSUFFIX'] = '.lib' env['LIBSUFFIX'] = '.a'
env['SHLIBPREFIX'] = '' env['SHLIBPREFIX'] = ''
env['SHLIBSUFFIX'] = '.dll' env['SHLIBSUFFIX'] = '.dll'
env['LIBPREFIXES'] = [ '$LIBPREFIX' ] env['LIBPREFIXES'] = [ 'lib', '' ]
env['LIBSUFFIXES'] = [ '$LIBSUFFIX' ] env['LIBSUFFIXES'] = [ '.a', '.lib' ]
env.AppendUnique(LIBS = ['iberty']) env.AppendUnique(LIBS = ['iberty'])
env.AppendUnique(LINKFLAGS = ['-Wl,--enable-stdcall-fixup']) env.AppendUnique(LINKFLAGS = ['-Wl,--enable-stdcall-fixup'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment