1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Add patch to support FreeBSD 9 and 10 in GYP.

Without this patch GYP will attempt to build v8 for Linux which will
fail due to missing headers.
This commit is contained in:
Geoff Garside 2012-05-12 15:41:09 +01:00
parent ac9e03dd53
commit 53972fc998
2 changed files with 15 additions and 0 deletions

View file

@ -18,6 +18,10 @@ task :checkout do
sh "git checkout #{V8_Version} -f"
sh "#{make} dependencies"
end
# Fix gyp trying to build platform-linux on FreeBSD 9 and FreeBSD 10.
# Based on: https://chromiumcodereview.appspot.com/10079030/patch/1/2
sh "patch -N -d vendor/v8 < patches/add-freebsd9-and-freebsd10-to-gyp-GetFlavor.patch"
end
desc "compile v8 via the ruby extension mechanism"

View file

@ -0,0 +1,11 @@
--- build/gyp/pylib/gyp/common.py.orig 2012-05-12 15:36:46.235280559 +0100
+++ build/gyp/pylib/gyp/common.py 2012-05-12 15:37:10.315754125 +0100
@@ -355,6 +355,8 @@
'sunos5': 'solaris',
'freebsd7': 'freebsd',
'freebsd8': 'freebsd',
+ 'freebsd9': 'freebsd',
+ 'freebsd10': 'freebsd',
}
flavor = flavors.get(sys.platform, 'linux')
return params.get('flavor', flavor)