0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-23 03:51:51 +00:00

Don't suggest use_system_icu=1, closes #238

This commit is contained in:
Stefan Siegl 2016-08-12 23:30:46 +02:00
parent de71f83b7f
commit 98e4399f81

View File

@ -32,10 +32,10 @@ Compile latest V8
``` ```
# Install `build-essential` if you haven't already: # Install `build-essential` if you haven't already:
sudo apt-get install build-essential sudo apt install build-essential
# Install `libicu-dev` if you haven't already: # Install `chrpath` for fixing libv8.so's RUNPATH header, if you haven't already:
sudo apt-get install libicu-dev sudo apt install chrpath
cd /tmp cd /tmp
@ -51,9 +51,6 @@ cd v8
git checkout 4.9.385.28 git checkout 4.9.385.28
gclient sync gclient sync
# use libicu of operating system
export GYP_DEFINES="use_system_icu=1"
# Build (with internal snapshots) # Build (with internal snapshots)
export GYPFLAGS="-Dv8_use_external_startup_data=0" export GYPFLAGS="-Dv8_use_external_startup_data=0"
@ -67,6 +64,9 @@ sudo mkdir -p /usr/lib /usr/include
sudo cp out/native/lib.target/lib*.so /usr/lib/ sudo cp out/native/lib.target/lib*.so /usr/lib/
sudo cp -R include/* /usr/include sudo cp -R include/* /usr/include
# Fix libv8.so's RUNPATH header
sudo chrpath -r '$ORIGIN' /usr/lib/libv8.so
# Install libv8_libplatform.a (V8 >= 5.2.51) # Install libv8_libplatform.a (V8 >= 5.2.51)
echo -e "create /usr/lib/libv8_libplatform.a\naddlib out/native/obj.target/src/libv8_libplatform.a\nsave\nend" | sudo ar -M echo -e "create /usr/lib/libv8_libplatform.a\naddlib out/native/obj.target/src/libv8_libplatform.a\nsave\nend" | sudo ar -M