How to build exactly the same node.js as official release

37 views
Skip to first unread message

Cong Liu

unread,
Mar 5, 2015, 9:47:50 AM3/5/15
to nod...@googlegroups.com
I want to build exactly the same node.js as official release. So that it's as same stable and secure as official builds. The configure script provides various options to build node.js. For example, shared openssl or not, with or without ssl2 and ssl3, v8 options etc. However I can't find a documentation of how official builds use these switches. Do they use default configurations?

julien...@joyent.com

unread,
Mar 5, 2015, 8:30:45 PM3/5/15
to nod...@googlegroups.com
Hi!


On Thursday, March 5, 2015 at 6:47:50 AM UTC-8, Cong Liu wrote:
I want to build exactly the same node.js as official release. So that it's as same stable and secure as official builds. The configure script provides various options to build node.js. For example, shared openssl or not, with or without ssl2 and ssl3, v8 options etc. However I can't find a documentation of how official builds use these switches. Do they use default configurations?

On Linux, official binaries are built by building the "binary" target found in Makefile. For node v0.10.x, it corresponds to the following configure options: --prefix=/ --without-snapshot --dest-cpu=$(DESTCPU), where $(DESTCPU) is either x64 or ia32. For node v0.12.x, the same configure options are used with the addition of --download=all --with-intl=small-icu.

On Windows, binaries are built by running vcbuild.bat build-release, which enables the same options as for Linux binaries.

On MacOS X, the "pkg" target is built, which also uses the same configure options as on Linux.

Please keep in mind however that enabling the same configure options does not mean that the same code is compiled the same way on all platforms.

Let me know if you have any question!

Julien
Reply all
Reply to author
Forward
0 new messages