Last active
January 28, 2023 07:20
-
-
Save jeroen/8a0e2a72c12bbe2b7cc527fb7fde8b75 to your computer and use it in GitHub Desktop.
Building V8 on Solaris 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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