nodejs: v7h - smack up scons & v8

This commit is contained in:
WarheadsSE 2012-02-04 22:01:56 -05:00
parent da6983575f
commit f886542565

View file

@ -9,7 +9,7 @@
pkgname=nodejs pkgname=nodejs
pkgver=0.6.10 pkgver=0.6.10
pkgrel=1 pkgrel=1
plugrel=1 plugrel=2
pkgdesc='Evented I/O for V8 javascript' pkgdesc='Evented I/O for V8 javascript'
arch=('i686' 'x86_64' 'arm') arch=('i686' 'x86_64' 'arm')
url='http://nodejs.org/' url='http://nodejs.org/'
@ -38,11 +38,12 @@ build() {
# we're going to attept to make use of this example # we're going to attept to make use of this example
# https://github.com/joyent/node/issues/2131#issuecomment-3208846 # https://github.com/joyent/node/issues/2131#issuecomment-3208846
# https://gist.github.com/1574158 # https://gist.github.com/1574158
msg 'Selecting pre-compile of v8'
# move up to v8 # move up to v8
cd deps/v8 cd deps/v8
# run the scons script directly... # run the scons script directly...
if [ "$CARCH" == "arm" ]; then if [ "$CARCH" == "arm" ]; then
msg 'pre-compiling v8 for v5'
# we need to override the arch (last one will be used) because # we need to override the arch (last one will be used) because
# v8 thinks armv5te can use unaligned.. the kirkwood can't! # v8 thinks armv5te can use unaligned.. the kirkwood can't!
CCFLAGS="$CCFLAGS -march=armv5t" ; CCFLAGS="$CCFLAGS -march=armv5t" ;
@ -50,7 +51,8 @@ if [ "$CARCH" == "arm" ]; then
scons arch=arm armeabi=soft mode=release scons arch=arm armeabi=soft mode=release
fi fi
if [ "$CARCH" == "armv7" ]; then if [ "$CARCH" == "armv7" ]; then
scons arch=arm armeabi=hard mode=release msg 'pre-compiling v8 for v7'
../../tools/scons/scons.py arch=arm armeabi=hard mode=release
fi fi
# go back to the node source directory # go back to the node source directory
cd ../../ cd ../../