diff --git a/community/nodejs/PKGBUILD b/community/nodejs/PKGBUILD index 3781794cd..c888b0133 100644 --- a/community/nodejs/PKGBUILD +++ b/community/nodejs/PKGBUILD @@ -32,6 +32,15 @@ build() { sed -i "s|python |python2 |" Makefile export PYTHON=python2 + +if [ "$CARCH" == "arm" ]; then + EABI=soft +fi +if [ "$CARCH" == "armv7h" -o "$CARCH" == "armv6h" ]; then + EABI=hard +fi + + # 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 @@ -41,7 +50,8 @@ build() { --shared-v8 \ --shared-v8-libpath=/usr/lib \ --shared-v8-includes=/usr/include \ - --without-snapshot + --without-snapshot \ + --with-arm-float-abi=$EABI make }