From 7d3c39c259fe1510152b6db37a896b0016c39e31 Mon Sep 17 00:00:00 2001 From: Aiko Mastboom Date: Wed, 8 May 2013 00:08:11 +0200 Subject: [PATCH] add ARM support --- installit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installit b/installit index ffcac23..ee8841e 100755 --- a/installit +++ b/installit @@ -20,8 +20,9 @@ arch=`uname -m` if [[ "${arch}" == 'armv6l' ]]; then # ARM support: https://github.com/mongodb/js-bson/issues/37 rm -rf ./node_modules/bson/build - ${SED} -e s/#define USE_MISALIGNED_MEMORY_ACCESS 1/#define USE_MISALIGNED_MEMORY_ACCESS 0/g ./node_modules/bson/ext/bson.h - npm install bson + ${SED} -e "s/#define USE_MISALIGNED_MEMORY_ACCESS 1/#define USE_MISALIGNED_MEMORY_ACCESS 0/g" ./node_modules/bson/ext/bson.h + head ./node_modules/bson/ext/bson.h | grep USE_MISALIGNED_MEMORY_ACCESS + npm rebuild bson fi # patch ShareJS client