cowboyd/libv8 — pull request #36 by geoffgarside (2012-05-12 16:39:47+00:00)
Title: FreeBSD support

I've added a small module for determining the path to an appropriate Make utility, gmake or make, and another for finding an appropriate compiler. v8 is only "officially" supported with GCC 4.4, unfortunately the latest version of GCC which can be included in the FreeBSD base system is 4.2. The compiler checks will look for the following

1. `g++`
2. `g++44`
3. `g++46`
4. `g++48`

using whichever version is found first that satisfies the 4.4 requirement.

I've tested the compilation with v4.4.7 and v4.6.4 on FreeBSD 8.2 and 9.0.

Also included are two patches, the one adds support to GYP for detecting FreeBSD 9.0 as "freebsd", the second fixes a compiler warning which results in a build failure.

I've also tested compilation on Ubuntu 11.04 and none of my changes appear to affect Linux in anyway.