GeezerVison is showing github.com — Introduce --link-module to ./configure · nodejs/node@1a531b4
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 +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -84,6 +84,13 @@ parser.add_option("--fully-static", |
84 | 84 | help="Generate an executable without external dynamic libraries. This " |
85 | 85 | "will not work on OSX when using default compilation environment") |
86 | 86 |
|
| 87 | +parser.add_option("--link-module", |
| 88 | + action="append", |
| 89 | + dest="linked_module", |
| 90 | + help="Path to a JS file to be bundled in the binary as a builtin." |
| 91 | + "This module will be referenced by basename without extension." |
| 92 | + "Can be used multiple times") |
| 93 | + |
87 | 94 | parser.add_option("--openssl-no-asm", |
88 | 95 | action="store_true", |
89 | 96 | dest="openssl_no_asm", |
@@ -697,6 +704,9 @@ def configure_node(o): |
697 | 704 | if options.enable_static: |
698 | 705 | o['variables']['node_target_type'] = 'static_library' |
699 | 706 |
|
| 707 | + if options.linked_module: |
| 708 | + o['variables']['library_files'] = options.linked_module |
| 709 | + |
700 | 710 |
|
701 | 711 | def configure_library(lib, output): |
702 | 712 | shared_lib = 'shared_' + lib |
|