mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fix Mono static linking on Mingw
This commit is contained in:
parent
ff0d295d9e
commit
f2d669f5d3
@ -80,7 +80,11 @@ def configure(env):
|
||||
|
||||
if mono_static:
|
||||
lib_suffix = Environment()['LIBSUFFIX']
|
||||
mono_static_lib_name = 'libmono-static-sgen'
|
||||
|
||||
if env.msvc:
|
||||
mono_static_lib_name = 'libmono-static-sgen'
|
||||
else:
|
||||
mono_static_lib_name = 'libmonosgen-2.0'
|
||||
|
||||
if not os.path.isfile(os.path.join(mono_lib_path, mono_static_lib_name + lib_suffix)):
|
||||
raise RuntimeError('Could not find static mono library in: ' + mono_lib_path)
|
||||
@ -93,7 +97,10 @@ def configure(env):
|
||||
env.Append(LINKFLAGS='LIBCMT' + lib_suffix)
|
||||
env.Append(LINKFLAGS='Psapi' + lib_suffix)
|
||||
else:
|
||||
env.Append(LIBS=mono_static_lib_name)
|
||||
env.Append(LINKFLAGS=os.path.join(mono_lib_path, mono_static_lib_name + lib_suffix))
|
||||
|
||||
env.Append(LIBS='psapi')
|
||||
env.Append(LIBS='version')
|
||||
else:
|
||||
mono_lib_name = find_file_in_dir(mono_lib_path, mono_lib_names, extension='.lib')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user