mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
nodejs: v7h - smack up scons & v8
This commit is contained in:
parent
da6983575f
commit
f886542565
1 changed files with 5 additions and 3 deletions
|
@ -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 ../../
|
||||||
|
|
Loading…
Reference in a new issue