Skip to content

Instantly share code, notes, and snippets.

@jeroen
Last active January 28, 2023 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jeroen/8a0e2a72c12bbe2b7cc527fb7fde8b75 to your computer and use it in GitHub Desktop.
Save jeroen/8a0e2a72c12bbe2b7cc527fb7fde8b75 to your computer and use it in GitHub Desktop.
Building V8 on Solaris 10
#VERSION=v8.17.0
VERSION=v10.24.1
PATH=/opt/csw/bin:$PATH
export CC="gcc"
export CXX="g++"
curl -OL "https://nodejs.org/download/release/${VERSION}/node-${VERSION}.tar.gz"
gunzip node-${VERSION}.tar.gz
rm -Rf node-${VERSION}
gtar xf node-${VERSION}.tar
cd node-${VERSION}
gsed -i.bak 's/V8_LIBC_BIONIC/1/g' deps/v8/src/allocation.cc
gsed -i.bak 's/V8_OS_SOLARIS/V8_OS_BLA/g' deps/v8/src/base/debug/stack_trace_posix.cc
./configure --shared --without-ssl --without-perfctr --without-npm --without-dtrace --without-inspector --without-intl
gmake
# Copy files
mkdir -p ../v8-static/lib
cp out/Release/*.a ../v8-static/lib
cp -r deps/v8/include ../v8-static/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment