From ce3fb202ece312958ba1cb8e459dca8046f37daf Mon Sep 17 00:00:00 2001 From: Gregory Heytings Date: Fri, 19 Nov 2021 09:02:08 +0000 Subject: [PATCH] Pass options from make to configure through a variable. * GNUmakefile (configure): Use the variable. * INSTALL.REPO: Mention the variable. --- GNUmakefile | 4 ++-- INSTALL.REPO | 12 +++++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index e409628915..8fce2e3172 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -104,8 +104,8 @@ configure: Makefile: configure @echo >&2 'There seems to be no Makefile in this directory.' - @echo >&2 'Running ./configure ...' - ./configure + @echo >&2 'Running ./configure '$(configure)'...' + ./configure $(configure) @echo >&2 'Makefile built.' # 'make bootstrap' in a fresh checkout needn't run 'configure' twice. diff --git a/INSTALL.REPO b/INSTALL.REPO index da56d7611b..9aee48320f 100644 --- a/INSTALL.REPO +++ b/INSTALL.REPO @@ -8,9 +8,15 @@ directory on your local machine: To build the repository code, simply run 'make' in the 'emacs' directory. This should work if your files are freshly checked out -from the repository, and if you have the proper tools installed. If -it doesn't work, or if you have special build requirements, the -following information may be helpful. +from the repository, and if you have the proper tools installed; the +default configuration options will be used. Other configuration +options can be specified by setting a 'configure' variable, for +example: + + $ make configure="--prefix=/opt/emacs CFLAGS='-O0 -g3'" + +If the above doesn't work, or if you have special build requirements, +the following information may be helpful. Building Emacs from the source-code repository requires some tools that are not needed when building from a release. You will need: -- 2.33.0