[OmniOS-discuss] Node.js

John D Groenveld jdg117 at elvis.arl.psu.edu
Sun Apr 12 13:16:09 UTC 2015


Building Node.js has a couple quirks:
Fetch libproc.h from Joyent's source tree.
<URL:https://github.com/joyent/node/issues/6439>
The binaries in pkg:/developer/gnu-binutils aren't in /usr/gnu/bin.

Otherwise, its a straight-forward.

John
groenveld at acm.org

$ cd node-v0.12.2
$ env PATH=/opt/nodejs/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/gcc-4.8.1/bin:/usr/sfw/bin:/usr/gnu/bin:/usr/gnu/i386-pc-solaris2.11/bin \
CC=gcc CXX=g++ ./configure \
--dest-os=solaris \
--dest-cpu=x64 \
--shared-openssl --shared-zlib \
--prefix=/opt/nodejs
$ env PATH=/opt/nodejs/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/gcc-4.8.1/bin:/usr/sfw/bin:/usr/gnu/bin:/usr/gnu/i386-pc-solaris2.11/bin \
gmake


*** common.gypi Sun Apr 12 09:07:56 2015
--- common.gypi.FCS     Sun Apr 12 09:07:52 2015
***************
*** 75,81 ****
            }],
            ['OS=="solaris"', {
              # pull in V8's postmortem metadata
!             'ldflags': [ '-Wl,-z,allextract -L/usr/lib/64 -R/usr/lib/64 -L/usr/lib/mdb/proc/amd64 -R/usr/lib/mdb/proc/amd64' ]
            }],
            ['clang == 0 and gcc_version >= 40', {
              'cflags': [ '-fno-tree-vrp' ],  # Work around compiler bug.
--- 75,81 ----
            }],
            ['OS=="solaris"', {
              # pull in V8's postmortem metadata
!             'ldflags': [ '-Wl,-z,allextract' ]
            }],
            ['clang == 0 and gcc_version >= 40', {
              'cflags': [ '-fno-tree-vrp' ],  # Work around compiler bug.


More information about the OmniOS-discuss mailing list