summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index f89812cc94..c9d598b799 100755
--- a/configure
+++ b/configure
@@ -1074,8 +1074,14 @@ def configure_library(lib, output):
# libpath needs to be provided ahead libraries
if options.__dict__[shared_lib + '_libpath']:
- output['libraries'] += [
- '-L%s' % options.__dict__[shared_lib + '_libpath']]
+ if flavor == 'win':
+ if 'msvs_settings' not in output:
+ output['msvs_settings'] = { 'VCLinkerTool': { 'AdditionalOptions': [] } }
+ output['msvs_settings']['VCLinkerTool']['AdditionalOptions'] += [
+ '/LIBPATH:%s' % options.__dict__[shared_lib + '_libpath']]
+ else:
+ output['libraries'] += [
+ '-L%s' % options.__dict__[shared_lib + '_libpath']]
elif pkg_libpath:
output['libraries'] += [pkg_libpath]