diff --git a/community/emacs/APKBUILD b/community/emacs/APKBUILD
index 1d0655d109c7c2f99f38079fa8795c8ff28ea565..c9ea57a3cd07481256839733ec9421c453c4840d 100644
--- a/community/emacs/APKBUILD
+++ b/community/emacs/APKBUILD
@@ -2,14 +2,15 @@
 # Contributor: Timo Teräs <timo.teras@iki.fi>
 pkgname=emacs
 pkgver=28.1
-pkgrel=0
+pkgrel=1
 pkgdesc="The extensible, customizable, self-documenting real-time display editor"
 arch="all"
 depends="emacs-nox"
 url="https://www.gnu.org/software/emacs/emacs.html"
 license="GPL-3.0-or-later"
 makedepends="autoconf automake linux-headers gawk ncurses-dev
-	ncurses-libs gnutls-dev gmp-dev jansson-dev harfbuzz-dev"
+	ncurses-libs gnutls-dev gmp-dev jansson-dev harfbuzz-dev
+	libgccjit-dev"
 subpackages="$pkgname-doc $pkgname-nox"
 source="https://ftp.gnu.org/gnu/emacs/emacs-$pkgver.tar.xz
 	no-git-repo.patch"
@@ -51,6 +52,7 @@ _build_variant() {
 		--with-gpm \
 		--with-harfbuzz \
 		--with-json \
+		--with-native-compilation \
 		"${@}"
 	make
 }