Skip to content

Instantly share code, notes, and snippets.

@ankitrgadiya
Last active May 30, 2023 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 \
--with-native-compilation \
--with-pgtk \
--without-xaw3d \
--without-cairo \
--with-sound=no \
--with-xwidgets \
--with-json \
--with-mailutils \
--with-tree-sitter \
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