diff --git a/configure.py b/configure.py index 4bc790e2f24219..533849324d27ee 100755 --- a/configure.py +++ b/configure.py @@ -45,6 +45,7 @@ import getnapibuildversion import getsharedopensslhasquic from gyp_node import run_gyp +from utils import SearchFiles # parse our options parser = argparse.ArgumentParser() @@ -1148,6 +1149,8 @@ def gcc_version_ge(version_checked): return False return True +def configure_node_lib_files(o): + o['variables']['node_library_files'] = SearchFiles('lib', 'js') def configure_node(o): if options.dest_os == 'android': @@ -1896,6 +1899,7 @@ def make_bin_override(): flavor = GetFlavor(flavor_params) configure_node(output) +configure_node_lib_files(output) configure_napi(output) configure_library('zlib', output) configure_library('http_parser', output) diff --git a/node.gyp b/node.gyp index 691ce22ff3d664..be50b280fc5946 100644 --- a/node.gyp +++ b/node.gyp @@ -33,7 +33,7 @@ # Windows command length limit or there would be an error. # See https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation 'library_files': [ - '