On Fri, Nov 4, 2011 at 9:54 AM, Jakob Kummerow <[email protected]>wrote:

> Compile output (both object files and final binaries/libraries) goes to
> ./out/<arch>.<mode>/ by default, the "out/" part of that path can be
> overridden with the OUTDIR= parameter to the top-level Makefile. Again,
> this is documented at http://code.google.com/p/v8/wiki/BuildingWithGYP.
>

Yes, but OUTDIR and PREFIX are conventionally two very different things -
one user compiles to the OUTDIR and the root user installs to the PREFIX.
(But no big deal - i can live with a cp/symlink install.)

Another warning for other non-gyp-users: the docs list "library=..." as
being an optional build parameter, but if you do not specify it then it
builds a bunch of stuff but not what clients are looking for (no libv8):

[stephan@cheyenne:~/src/google/v8]$ find . -name '*.so' -o -name '*.a'
./out/native/obj.target/tools/gyp/libv8_nosnapshot.a
./out/native/obj.target/tools/gyp/libpreparser_lib.a
./out/native/obj.target/tools/gyp/libv8_snapshot.a
./out/native/obj.target/tools/gyp/libv8_base.a
./out/x64.debug/obj.target/tools/gyp/libv8_nosnapshot.a
./out/x64.debug/obj.target/tools/gyp/libpreparser_lib.a
./out/x64.debug/obj.target/tools/gyp/libv8_snapshot.a
./out/x64.debug/obj.target/tools/gyp/libv8_base.a

So...

$ make ARCH.(release|debug) library=shared console=readline

seems to do the trick.

Side note: last i checked (a few days ago using the scons build) the
static-lib build on Linux platforms does not work - the lib builds but
clients cannot link to it due to missing symbols in the .a. Additionally,
v8 links to the system networking libs (because of the POSIXSocket class in
platform-posix.cc), which cannot be statically linked on Linux, so a static
build is not terribly useful. (Not that i mind, just pointing it out.)


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to