diff --git a/graal-nodejs/configure.py b/graal-nodejs/configure.py index e02ea404200..96d1d9f7c5d 100755 --- a/graal-nodejs/configure.py +++ b/graal-nodejs/configure.py @@ -1500,7 +1500,7 @@ def configure_node(o): o['variables']['shlib_suffix'] = shlib_suffix if options.linked_module: - o['variables']['library_files'] = options.linked_module + o['variables']['linked_module_files'] = options.linked_module o['variables']['asan'] = int(options.enable_asan or 0) o['variables']['v8_inspector'] = 'false' diff --git a/graal-nodejs/node.gyp b/graal-nodejs/node.gyp index 311f5e899d8..9da47bf79b3 100644 --- a/graal-nodejs/node.gyp +++ b/graal-nodejs/node.gyp @@ -29,6 +29,8 @@ 'node_lib_target_name%': 'libnode', 'node_intermediate_lib_type%': 'static_library', 'node_builtin_modules_path%': '', + 'linked_module_files': [ + ], # We list the deps/ files out instead of globbing them in js2c.py since we # only include a subset of all the files under these directories. # The lengths of their file names combined should not exceed the @@ -36,6 +38,7 @@ # See https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation 'library_files': [ '<@(node_library_files)', + '<@(linked_module_files)', ], 'deps_files': [ 'deps/v8/tools/splaytree.mjs', @@ -989,6 +992,7 @@ '<@(_outputs)', 'config.gypi', '<@(deps_files)', + '<@(linked_module_files)', ], }, ],