From 62a79ae5569de6e5b18b3ddb2a856adfdaf5288d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 5 Aug 2014 00:40:51 +0200 Subject: [PATCH] build: fix export of libmpv symbols on mingw The _ usually prefixed to functions on Windows was unexpectedly missing. --- waftools/syms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waftools/syms.py b/waftools/syms.py index 4bef9a36f3..520ae70a88 100644 --- a/waftools/syms.py +++ b/waftools/syms.py @@ -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')