On Fri, Nov 4, 2011 at 12:13 PM, Stephan Beal <[email protected]> wrote:
> $ make ARCH.(release|debug) library=shared console=readline > > seems to do the trick. > Apparently i lied :/. The lib builds, but: [stephan@cheyenne:~/src/google/v8]$ find . -name '*.so' -ls 7352519 12 -rwxr-xr-x 2 stephan stephan 10028 Nov 4 12:09 ./out/x64.debug/obj.target/tools/gyp/libv8.so 7352519 12 -rwxr-xr-x 2 stephan stephan 10028 Nov 4 12:09 ./out/x64.debug/lib.target/libv8.so [stephan@cheyenne:~/src/google/v8]$ l ./out/x64.debug/lib.target/libv8.so -rwxr-xr-x 2 stephan stephan 10028 Nov 4 12:09 ./out/x64.debug/lib.target/libv8.so immediately noticeable is the size of the lib - 10kb? The debug build of the dll has always been 20+MB. i thought maybe the .so was some sort of libtool-like wrapper, but it is indeed an SO: [stephan@cheyenne:~/src/google/v8]$ file ./out/x64.debug/lib.target/libv8.so ./out/x64.debug/lib.target/libv8.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped [stephan@cheyenne:~/src/google/v8]$ ldd ./out/x64.debug/lib.target/libv8.so linux-vdso.so.1 => (0x00007fff8ddff000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5376119000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5375e94000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5375c7d000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5375a5f000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f53756cb000) /lib64/ld-linux-x86-64.so.2 (0x00007f537664b000) [stephan@cheyenne:~/src/google/v8]$ l ~/lib/libv8.so lrwxrwxrwx 1 stephan stephan 61 Nov 4 12:14 /home/stephan/lib/libv8.so -> /home/stephan/src/google/v8/out/x64.debug/lib.target/libv8.so [stephan@cheyenne:~/src/google/v8]$ ldd ~/lib/libv8.so linux-vdso.so.1 => (0x00007fff1b1a8000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fed2236e000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fed220e9000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fed21ed2000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fed21cb4000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fed21920000) /lib64/ld-linux-x86-64.so.2 (0x00007fed228a0000) linking to this lib fails miserably: + g++ -pipe -O2 -DNDEBUG -fPIC -I. -I/home/stephan/cvs/v8-juice/trunk/src/include -I/home/stephan/include -I/home/stephan/include -o v8-juice-shell shell.o -L../../../src/lib/juice -lv8-juice -ldl -rdynamic -L/home/stephan/lib -lv8 -lpthread shell.o: In function `Version(v8::Arguments const&)': shell.cc:(.text+0x5): undefined reference to `v8::V8::GetVersion()' shell.cc:(.text+0x12): undefined reference to `v8::String::New(char const*, int)' shell.o: In function `Quit(v8::Arguments const&)': shell.cc:(.text+0x30): undefined reference to `v8::Value::Int32Value() const' shell.cc:(.text+0x41): undefined reference to `v8::Undefined()' ... many more undefined symbols... Any hints would be appreciated. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
