msys2: Handle aliased functions when generating the .lib files
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 25 Sep 2017 17:14:53 +0000 (14:14 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 25 Sep 2017 17:15:09 +0000 (14:15 -0300)
msys2_setup.py

index ce36f04..8153f07 100644 (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,