소스 검색

Merge pull request #44 from cscott/g++-update

Add a bit of documentation about g++ 4.8.
Patrick Reilly 11 년 전
부모
커밋
19f30f5b1c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      README.md

+ 8 - 0
README.md

@@ -39,6 +39,14 @@ sudo cp include/v8* /usr/include
 
 ```
 
+`v8` doesn't support `g++` version 4.8 (yet; see
+<https://code.google.com/p/v8/issues/detail?id=2149>).  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.