nodejs: attempt to fix v7h

This commit is contained in:
WarheadsSE 2012-02-04 21:06:11 -05:00
parent 712c9dd381
commit da6983575f

View file

@ -35,10 +35,26 @@ build() {
sed -i "s/python/&2/" configure
export PYTHON=python2
# 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
# move up to v8
cd deps/v8
# run the scons script directly...
if [ "$CARCH" == "arm" ]; then
msg 'patching for armv5te' ;
patch -p1 deps/v8/SConstruct < ../nodejs-armv5t.patch ;
# we need to override the arch (last one will be used) because
# v8 thinks armv5te can use unaligned.. the kirkwood can't!
CCFLAGS="$CCFLAGS -march=armv5t" ;
export CCFLAGS ;
scons arch=arm armeabi=soft mode=release
fi
if [ "$CARCH" == "armv7" ]; then
scons arch=arm armeabi=hard mode=release
fi
# go back to the node source directory
cd ../../
./configure \
--prefix=/usr