mirror of
https://github.com/mpv-player/mpv
synced 2025-03-01 11:50:48 +00:00
wscript: add LIBRARY_PATH for library detection
MinGW GCC seems to ignore LIBRARY_PATH which causes problem when some libraries not using pkg-config were installed to local directory
This commit is contained in:
parent
ea40fa36ee
commit
d41f25009d
@ -50,6 +50,8 @@ def check_iconv(ctx, dependency_identifier):
|
||||
if ctx.env.DEST_OS == 'openbsd' or ctx.env.DEST_OS == 'freebsd':
|
||||
args['cflags'] = '-I/usr/local/include'
|
||||
args['linkflags'] = '-L/usr/local/lib'
|
||||
elif ctx.env.DEST_OS == 'win32':
|
||||
args['linkflags'] = " ".join(['-L' + x for x in ctx.env.LIBRARY_PATH])
|
||||
checkfn = check_cc(**args)
|
||||
return check_libs(libs, checkfn)(ctx, dependency_identifier)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user