Uh oh!
There was an error while loading. Please reload this page.
Support for building io.js as a static library - #1341
Conversation
One static library could not be bundled into another, that's why it's necessary to skip `-force_load` and `--whole-archive` linker options to build io.js itself as a static library. `node_target_type` variable has been added to node.gyp, along with `--target-static` option in configure script. nodejs#686
Fishrock123
commented
Apr 4, 2015
cc @bnoordhuis |
hoho
commented
Apr 4, 2015
I've pull requested a piece of my fixes. If everything goes well, I'd like to extend the testing subsystem with an ability to run all the tests for some binary linked with io.js from a static library (this would also be a documentation of how to link). I also have an issue about |
bnoordhuis
commented
Apr 4, 2015
LGTM but can I suggest you rename the configure switch to |
hoho
commented
Apr 4, 2015
Sure, I was just thinking that |
jbergstroem
commented
Apr 7, 2015
LGTM. Tested on smartos/freebsd this weekend. |
One static library could not be bundled into another, that's why it's necessary to skip `-force_load` and `--whole-archive` linker options to build io.js itself as a static library. `node_target_type` variable has been added to node.gyp, along with `--enable-static` option in configure script. Fixes: #686 PR-URL: #1341 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
bnoordhuis
commented
Apr 11, 2015
Landed in cd38a4a, thanks. For posterity, I had to fix a merge conflict and undid some of the stylistic changes while I was there. |
zcbenz
commented
Apr 12, 2015
Awesome! |
Notable Changes: * build: Support for building io.js as a static library (Marat Abdullin) #1341 * deps: upgrade openssl to 1.0.2a (Shigeki Ohtsu) #1389 * npm: Upgrade npm to 2.8.3. (Forrest L Norvell) #1448 * src: allow multiple arguments to be passed to process.nextTick (Trevor Norris) #1077 * module: interaction of require('.') with NODE_PATH has been restored and deprecated. This functionality will be removed at a later point. (Roman Reiss) #1363
Notable Changes: * build: Support for building io.js as a static library (Marat Abdullin) #1341 * deps: upgrade openssl to 1.0.2a (Shigeki Ohtsu) #1389 * npm: Upgrade npm to 2.8.3. (Forrest L Norvell) #1448 * src: allow multiple arguments to be passed to process.nextTick (Trevor Norris) #1077 * module: the interaction of require('.') with NODE_PATH has been restored and deprecated. This functionality will be removed at a later point. (Roman Reiss) #1363
Notable Changes: * build: revert vcbuild.bat changes * changes inherited from v1.8.0: * build: Support for building io.js as a static library (Marat Abdullin) #1341 * npm: Upgrade npm to 2.8.3. (Forrest L Norvell) #1448 * deps: upgrade openssl to 1.0.2a (Shigeki Ohtsu) #1389 * src: allow multiple arguments to be passed to process.nextTick (Trevor Norris) #1077 * module: the interaction of require('.') with NODE_PATH has been restored and deprecated. This functionality will be removed at a later point. (Roman Reiss) #1363
One static library could not be bundled into another, that's why
it's necessary to skip
-force_loadand--whole-archivelinkeroptions to build io.js itself as a static library.
node_target_typevariable has been added to node.gyp, alongwith
--target-staticoption in configure script.#686 for more information.