build: support building io.js as a static library
authorMarat Abdullin <dakota@brokenpipe.ru>
Sat, 4 Apr 2015 14:04:49 +0000 (17:04 +0300)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 11 Apr 2015 04:53:17 +0000 (06:53 +0200)
commitcd38a4af8f8210ce96d1a034da010dbc1b2bcf81
treeefd85226052e174fdd8b03388c59844753c8e53a
parent93a1a07ef4f578d5c3c1930fc85644d2fee7bb33
build: support building io.js as a static library

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: https://github.com/iojs/io.js/issues/686
PR-URL: https://github.com/iojs/io.js/pull/1341
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
configure
node.gyp