From d41f25009d12b27395651d47b0601b3efebdda2a Mon Sep 17 00:00:00 2001 From: kwkam Date: Sat, 28 Jan 2017 18:31:28 +0800 Subject: 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 --- waftools/checks/custom.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'waftools') 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) -- cgit v1.2.3