Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mbroadst/39bb312c6701b0ba6c913b1b14bd436b to your computer and use it in GitHub Desktop.
Save mbroadst/39bb312c6701b0ba6c913b1b14bd436b to your computer and use it in GitHub Desktop.
From ac0218f9015461b5edf4d4e1fc54d8ef032e9717 Mon Sep 17 00:00:00 2001
From: Matt Broadstone <[email protected]>
Date: Mon, 11 Apr 2016 09:40:00 -0400
Subject: [PATCH 2/4] configure v8 without snapshot for cross compile
---
mk/support/pkg/v8.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/mk/support/pkg/v8.sh b/mk/support/pkg/v8.sh
index 7475dbe..4dcd06b 100644
--- a/mk/support/pkg/v8.sh
+++ b/mk/support/pkg/v8.sh
@@ -45,7 +45,13 @@ pkg_install () {
*) arch=native ;;
esac
mode=release
- pkg_make $arch.$mode CXX="$CXX" LINK="$CXX" LINK.target="$CXX" GYPFLAGS="-Dwerror= $arch_gypflags" V=1
+
+ configure_gypflags=
+ if [[ "$CROSS_COMPILING" = 1 ]]; then
+ configure_gypflags=" -Dv8_use_snapshot='false'"
+ fi
+
+ pkg_make $arch.$mode CXX="$CXX" LINK="$CXX" LINK.target="$CXX" GYPFLAGS="-Dwerror= $configure_gypflags $arch_gypflags" V=1
for lib in `find "$build_dir/out/$arch.$mode" -maxdepth 1 -name \*.a` `find "$build_dir/out/$arch.$mode/obj.target" -name \*.a`; do
name=`basename $lib`
cp $lib "$install_dir/lib/${name/.$arch/}"
--
2.3.8 (Apple Git-58)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment