Skip to content

Instantly share code, notes, and snippets.

@aklen
Last active August 21, 2018 13:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aklen/849f3460b7a028c9aed8a84e1d4cecb7 to your computer and use it in GitHub Desktop.
Save aklen/849f3460b7a028c9aed8a84e1d4cecb7 to your computer and use it in GitHub Desktop.
Build NodeJS as a shared library from source

Build NodeJS as a shared library from source

Windows

> .\vcbuild release vs2017 dll x64

> .\vcbuild release vs2017 dll x86

> .\vcbuild debug vs2017 dll x64

> .\vcbuild debug vs2017 dll x86

Linux / MacOS

$ ./configure --shared --release
$ make -j4
$ ./configure --shared --debug
$ make -j4

Other build options

https://github.com/nodejs/node/blob/master/BUILDING.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment