Hi,
I am trying to build V8 on a fresh Ubuntu 16.04 using libc++ instead of libstdc++.
In case you wonder why, we want to integrate Linux support to
UnrealJS, a Unreal Engine 4 plugin allowing to use JS.
So after a few days trying to understand how the build process of V8 is going, here is what I came up with:
export CXX="`which clang++` -v -E -std=c++11 -stdlib=libc++ -I/usr/include/c++/5 -I/usr/include/x86_64-linux-gnu/c++/5"
export CC="`which clang` -v"
export CPP="`which clang` -v -E -std=c++11 -stdlib=libc++"
export LINK="`which clang++` -v -std=c++11 -stdlib=libc++ -L/usr/lib/x86_64-linux-gnu"
export CXX_host="`which clang++` -v -std=c++11 -stdlib=libc++"
export CC_host="`which clang` -v"
export CPP_host="`which clang` -v -E"
export LINK_host="`which clang++` -v -std=c++11 -stdlib=libc++ -L/usr/lib/x86_64-linux-gnu"
export GYP_DEFINES="clang=1 linux_use_bundled_binutils=0 linux_use_gold_flags=0 use_sysroot=0 werror="
make x64.release
Unfortunately this ends up with the following error:
/home/deams/v8/third_party/binutils/Linux_x64/Release/bin/ld: error: /home/deams/v8/out/x64.release/obj.target/src/libv8_libbase.a: no archive symbol table (run ranlib)
I searched throughout the web for information, but couldn't get much information on the specifics of using libc++ to compile on Linux, so I'd really appreciate help from the community... :)