From 8904288b33d713a76fb22babebcdd1e52cc7f840 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Thu, 3 Oct 2013 17:06:07 -0400 Subject: [PATCH] Add a bit of documentation about g++ 4.8. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 1ff458b..f781462 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,14 @@ sudo cp include/v8* /usr/include ``` +`v8` doesn't support `g++` version 4.8 (yet; see +). If your default `g++` +is version 4.8 you may need to install `g++` 4.7 and replace the `make` +command above with: +``` +CXX=g++-4.7 LINK=g++-4.7 make native library=shared -j8 +``` + If you don't want to overwrite the system copy of v8, replace `/usr` in the above commands with `/tmp/v8-install` and then add `--with-v8js=/tmp/v8-install` to the php-v8js `./configure` command below.