diff --git a/community/nodejs/PKGBUILD b/community/nodejs/PKGBUILD index b4849985e..785295f57 100644 --- a/community/nodejs/PKGBUILD +++ b/community/nodejs/PKGBUILD @@ -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