1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

build: fix export of libmpv symbols on mingw

The _ usually prefixed to functions on Windows was unexpectedly missing.
This commit is contained in:
wm4 2014-08-05 00:40:51 +02:00
parent 91fbaa7d34
commit 62a79ae556

View File

@ -35,7 +35,7 @@ class gen_sym(Task):
kw['env'] = env
else:
if self.env.DEST_BINFMT in ('pe', 'mac-o'): #gcc uses nm, and has a preceding _ on windows and osx
if self.env.DEST_BINFMT in ('mac-o',): #gcc uses nm, and has a preceding _ on osx
re_nm = re.compile(r'T\s+_(' + self.generator.export_symbols_regex + r')\b')
else:
re_nm = re.compile(r'T\s+(' + self.generator.export_symbols_regex + r')\b')