Skip to content

Instantly share code, notes, and snippets.

@xevrem
Last active December 6, 2023 15:18
Show Gist options
  • Select an option

  • Save xevrem/896d8f14eae4a247dd467796aa217935 to your computer and use it in GitHub Desktop.

Select an option

Save xevrem/896d8f14eae4a247dd467796aa217935 to your computer and use it in GitHub Desktop.
build emacs 29.1.90 in debian distros
git clone --depth=1 https://github.com/emacs-mirror/emacs.git
cd emacs/
sudo apt install -y autoconf make gcc texinfo libgtk-3-dev libxpm-dev \
libjpeg-dev libgif-dev libtiff5-dev libgnutls28-dev libncurses5-dev \
libjansson-dev libharfbuzz-dev libharfbuzz-bin libtree-sitter-dev \
libgccjit-11-dev
./autogen.sh
./configure --with-json --with-modules --with-harfbuzz --with-compress-install --with-cairo \
--with-threads --with-included-regex --with-zlib --with-jpeg --with-png --with-native-compilation \
--with-tree-sitter --with-pgtk --with-mailutils \
CFLAGS="-O3 -mtune=native -march=native -fomit-frame-pointer"
make NATIVE_FULL_AOT=1 -j$(nproc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment