nodejs ./configure tweaks for hardfloat

This commit is contained in:
WarheadsSE 2012-08-06 22:07:49 -04:00
parent ea2bedeab0
commit 6d5fea87c4

View file

@ -32,6 +32,15 @@ build() {
sed -i "s|python |python2 |" Makefile
export PYTHON=python2
if [ "$CARCH" == "arm" ]; then
EABI=soft
fi
if [ "$CARCH" == "armv7h" -o "$CARCH" == "armv6h" ]; then
EABI=hard
fi
# we're going to attept to make use of this example
# https://github.com/joyent/node/issues/2131#issuecomment-3208846
# https://gist.github.com/1574158
@ -41,7 +50,8 @@ build() {
--shared-v8 \
--shared-v8-libpath=/usr/lib \
--shared-v8-includes=/usr/include \
--without-snapshot
--without-snapshot \
--with-arm-float-abi=$EABI
make
}