mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
nodejs: attempt to fix v7h
This commit is contained in:
parent
712c9dd381
commit
da6983575f
1 changed files with 18 additions and 2 deletions
|
@ -35,10 +35,26 @@ build() {
|
||||||
sed -i "s/python/&2/" configure
|
sed -i "s/python/&2/" configure
|
||||||
|
|
||||||
export PYTHON=python2
|
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
|
if [ "$CARCH" == "arm" ]; then
|
||||||
msg 'patching for armv5te' ;
|
# we need to override the arch (last one will be used) because
|
||||||
patch -p1 deps/v8/SConstruct < ../nodejs-armv5t.patch ;
|
# v8 thinks armv5te can use unaligned.. the kirkwood can't!
|
||||||
|
CCFLAGS="$CCFLAGS -march=armv5t" ;
|
||||||
|
export CCFLAGS ;
|
||||||
|
scons arch=arm armeabi=soft mode=release
|
||||||
fi
|
fi
|
||||||
|
if [ "$CARCH" == "armv7" ]; then
|
||||||
|
scons arch=arm armeabi=hard mode=release
|
||||||
|
fi
|
||||||
|
# go back to the node source directory
|
||||||
|
cd ../../
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr
|
--prefix=/usr
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue