Thank you, Capewell. :) I'll try with your instructions on an x86 Linux system.
In case it's any help to others, I managed to get a bit further with my OSX host, raspberry target build. Editing python module build/gyp/pylib/gyp/common.py so that the method GetFlavor() returns "linux" rather than "mac" disables the xcode emulation that causes the build system to add host specific flags to the compiler command line - even when cross compiling for ARM. This awful hack allows most of V8 to build. However for some reason, gyp tries to build gmock/gtest for the host system using clang with compiler options for the target system (the same options that the cross compiler is invoked with). What a mess. Den onsdag den 15. juni 2016 kl. 12.57.30 UTC+2 skrev M Capewell: > > On Linux, we've used the following successfully: > GYPFLAGS="-Dlinux_use_bundled_gold=0 -Dtarget_arch=arm" > tools/cross_build_gcc.sh <path to your toolchain>/bin/arm-linux-gnueabihf- > arm.release armfpu=vfp armfloatabi=hard arm_version=6 > > You may also want to use 'export LDFLAGS="-static"' beforehand to get a > statically linked binary, if your local library versions don't match those > on your Pi. > > We've also found that modern Linaro toolchains will link ARMv7-based > support libraries by default, and you may need to build our own toolchain > for ARMv6 to get things working on Pi Zero or 1. Google for 'crosstool-ng' > for help on building your own toolchain. > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
