msys2: Handle aliased functions when generating the .lib files

This commit is contained in:
Thibault Saunier 2017-09-25 14:14:53 -03:00
parent c79e252c53
commit 20cca3f10b

View file

@ -64,7 +64,8 @@ class Msys2Configurer(GstBuildConfigurer):
suffix='.def', delete=False, mode='w')
def_file.write('LIBRARY ' + dll_name + '\r\n')
def_file.write('EXPORTS\r\n')
for ordinal, _, _, name in exports:
for tmp in exports:
ordinal, name = tmp[0], tmp[3]
def_file.write(name + ' @' + ordinal + '\r\n')
def_file.close()
subprocess.check_output(['lib', '/def:' + def_file.name,