summaryrefslogtreecommitdiffstats
path: root/waftools
diff options
context:
space:
mode:
authorkwkam <kwkam@users.noreply.github.com>2017-01-28 18:31:28 +0800
committerwm4 <wm4@nowhere>2017-01-28 14:02:34 +0100
commitd41f25009d12b27395651d47b0601b3efebdda2a (patch)
tree8ba5481f4aeab70e3823f37fc4db896361ba33a4 /waftools
parentea40fa36eef15384b4c0218fb102f92f5cd1cdff (diff)
downloadmpv-d41f25009d12b27395651d47b0601b3efebdda2a.tar.bz2
mpv-d41f25009d12b27395651d47b0601b3efebdda2a.tar.xz
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
Diffstat (limited to 'waftools')
-rw-r--r--waftools/checks/custom.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py
index bf8e5a0b00..8ed06e5b24 100644
--- a/waftools/checks/custom.py
+++ b/waftools/checks/custom.py
@@ -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)