diff --git a/main/xulrunner/APKBUILD b/main/xulrunner/APKBUILD
index 7d846b3c3fa67c529fd162bfa659a8485c72d70c..41ec53f1b6c654035c31ef25a36f945f70e9fcd1 100644
--- a/main/xulrunner/APKBUILD
+++ b/main/xulrunner/APKBUILD
@@ -3,7 +3,7 @@
 pkgname=xulrunner
 pkgver=26.0
 _ffoxver=$pkgver
-pkgrel=5
+pkgrel=6
 pkgdesc="runtime environment for xul-based applications"
 url="http://developer.mozilla.org/en/XULRunner"
 arch="all"
@@ -102,7 +102,10 @@ package() {
 	cd "$_builddir"
 
 	# only used for startupcache creation.
-	paxctl -c -m */dist/bin/xpcshell || return 1
+	local paxflags="-m"
+	[ "$CARCH" = "x86" ] && paxflags="-msp"
+
+	paxctl -c $paxflags */dist/bin/xpcshell || return 1
 
 	make -j1 DESTDIR="$pkgdir" -f client.mk install || return 1