1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-29 15:00:27 +00:00

build: fix cross-compilation of libmpv

libmpv requires nm for creating the list of exported symbols (this is
done in syms.py). We should probably just make this list static instead,
but since this involves platform-specific code, for now this quick-fix
will do.
This commit is contained in:
wm4 2014-08-05 00:20:31 +02:00
parent d634f7b01a
commit 91fbaa7d34

View File

@ -789,12 +789,13 @@ def is_debug_build(ctx):
def configure(ctx):
ctx.check_waf_version(mini='1.7.15')
target = os.environ.get('TARGET')
(cc, pkg_config, windres) = ('cc', 'pkg-config', 'windres')
(cc, pkg_config, windres, nm) = ('cc', 'pkg-config', 'windres', 'nm')
if target:
cc = '-'.join([target, 'gcc'])
pkg_config = '-'.join([target, pkg_config])
windres = '-'.join([target, windres])
nm = '-'.join([target, nm])
ctx.find_program(cc, var='CC')
ctx.find_program(pkg_config, var='PKG_CONFIG')
@ -802,6 +803,7 @@ def configure(ctx):
ctx.find_program('rst2man', var='RST2MAN', mandatory=False)
ctx.find_program('rst2pdf', var='RST2PDF', mandatory=False)
ctx.find_program(windres, var='WINDRES', mandatory=False)
ctx.find_program(nm, var='NM', mandatory=False)
for ident, _, _ in _INSTALL_DIRS_LIST:
varname = ident.upper()