GeezerVison is showing github.com — build: make --shared-[...]-path work on Windows · nodejs/node@f506a5f
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: configure +8-2Lines changed: 8 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1074,8 +1074,14 @@ def configure_library(lib, output): |
1074 | 1074 |
|
1075 | 1075 | # libpath needs to be provided ahead libraries |
1076 | 1076 | if options.__dict__[shared_lib + '_libpath']: |
1077 | | - output['libraries'] += [ |
1078 | | - '-L%s' % options.__dict__[shared_lib + '_libpath']] |
| 1077 | + if flavor == 'win': |
| 1078 | + if 'msvs_settings' not in output: |
| 1079 | + output['msvs_settings'] = { 'VCLinkerTool': { 'AdditionalOptions': [] } } |
| 1080 | + output['msvs_settings']['VCLinkerTool']['AdditionalOptions'] += [ |
| 1081 | + '/LIBPATH:%s' % options.__dict__[shared_lib + '_libpath']] |
| 1082 | + else: |
| 1083 | + output['libraries'] += [ |
| 1084 | + '-L%s' % options.__dict__[shared_lib + '_libpath']] |
1079 | 1085 | elif pkg_libpath: |
1080 | 1086 | output['libraries'] += [pkg_libpath] |
1081 | 1087 |
|
|