diff --git a/community/nodejs-current/APKBUILD b/community/nodejs-current/APKBUILD
index e1d15c9fb28c1c08cf8f559b809fe64cdcea22e3..b65a075b72a1186bf3b5195feba6fbf4c554fcfe 100644
--- a/community/nodejs-current/APKBUILD
+++ b/community/nodejs-current/APKBUILD
@@ -37,7 +37,7 @@
 pkgname=nodejs-current
 # The current stable version, i.e. non-LTS.
 pkgver=15.8.0
-pkgrel=0
+pkgrel=1
 pkgdesc="JavaScript runtime built on V8 engine - current stable version"
 url="https://nodejs.org/"
 arch="all !mips64 !mips64el"
@@ -74,11 +74,19 @@ prepare() {
 
 build() {
 	# Add defines recommended in libuv readme.
-	export CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
-	export CXXFLAGS="$CXXFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+	local common_flags="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+
+	# Os overwrites the optimizations in BUILDTYPE=Release
+	# increases binary size by ~10% (53.1 MiB -> 58.6 MiB),
+	# but also increases performance by ~20%  according to
+	# v8/web-tooling-benchmark. Node.js is quite huge anyway;
+	# there are better options for size constrained environments.
+	export CFLAGS="${CFLAGS/-Os/} $common_flags"
+	export CXXFLAGS="${CXXFLAGS/-Os/} $common_flags"
+	export CPPFLAGS="${CPPFLAGS/-Os/} $common_flags"
 
 	case "$CARCH" in
-	mips*) _carchflags="--with-mips-arch-variant=r1 --with-mips-float-abi=soft";;
+		mips*) _carchflags="--with-mips-arch-variant=r1 --with-mips-float-abi=soft";;
 	esac
 
 	./configure --prefix=/usr \