Commit 51e557d5 by Dane Springmeyer

apply patch from @fengmk2 for iojs 32 bit build support - refs #399

parent 869d9e5f
...@@ -51,10 +51,19 @@ if [[ $(uname -s) == 'Linux' ]]; then ...@@ -51,10 +51,19 @@ if [[ $(uname -s) == 'Linux' ]]; then
# node v0.8 and above provide pre-built 32 bit and 64 bit binaries # node v0.8 and above provide pre-built 32 bit and 64 bit binaries
# so here we use the 32 bit ones to also test 32 bit builds # so here we use the 32 bit ones to also test 32 bit builds
NVER=`node -v` NVER=`node -v`
wget http://nodejs.org/dist/${NVER}/node-${NVER}-${platform}-x86.tar.gz
tar xf node-${NVER}-${platform}-x86.tar.gz
# enable 32 bit node # enable 32 bit node
export PATH=$(pwd)/node-${NVER}-${platform}-x86/bin:$PATH export PATH=$(pwd)/node-${NVER}-${platform}-x86/bin:$PATH
if [[ ${NODE_VERSION:0:4} == 'iojs' ]]; then
wget http://iojs.org/dist/${NVER}/iojs-${NVER}-${platform}-x86.tar.gz
tar xf iojs-${NVER}-${platform}-x86.tar.gz
# enable 32 bit iojs
export PATH=$(pwd)/iojs-${NVER}-${platform}-x86/bin:$PATH
else
wget http://nodejs.org/dist/${NVER}/node-${NVER}-${platform}-x86.tar.gz
tar xf node-${NVER}-${platform}-x86.tar.gz
# enable 32 bit node
export PATH=$(pwd)/node-${NVER}-${platform}-x86/bin:$PATH
fi
# install 32 bit compiler toolchain and X11 # install 32 bit compiler toolchain and X11
# test source compile in 32 bit mode with internal libsqlite3 # test source compile in 32 bit mode with internal libsqlite3
CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment