Skip to content

Instantly share code, notes, and snippets.

@ankitrgadiya
Last active May 10, 2024 09:16
Show Gist options
  • Save ankitrgadiya/524d6612465b6cdb9ac9a67260e1f7f9 to your computer and use it in GitHub Desktop.
Save ankitrgadiya/524d6612465b6cdb9ac9a67260e1f7f9 to your computer and use it in GitHub Desktop.
Compile Emacs
# Savannah Hosts are slower sometimes. Using Github Mirror.
git clone https://github.com/emacs-mirror/emacs
cd emacs
# Checkout Emacs 29 Branch
git checkout emacs-29 origin/emacs-29
# Ensure that Emacs Dependencies are pre-installed.
# This can be done by installing System's Emacs package or Manually
# installing dependencies.
# Configure
./autogen.sh all
./configure \
--prefix=/usr/local/ \
--localstatedir=/var/local/ \
--libdir=/usr/local/lib/ \
--sysconfdir=/usr/local/etc/ \
--mandir=/usr/local/share/man/ \
--with-gameuser=:games \
--with-modules \
--without-libotf \
--without-m17n-flt \
--without-gconf \
--without-gsettings \
--without-m17n-flt \
--with-native-compilation \
--with-pgtk \
--with-sound=yes \
--with-mailutils \
--with-tree-sitter \
--with-imagemagick \
CFLAGS='-O2 -pipe -march=native -fomit-frame-pointer'
# Compile
make -j8
make html pdf info
# Install
sudo make install install-html install-pdf install-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment