about summary refs log tree commit diff
path: root/overlays/patches/nixpkgs-wayland/pkgs/emacs/clean-env.patch
blob: 98d38f8b597ceaaac5b89ee9181b3403518c7467 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Dump temacs in an empty environment to prevent -dev paths from ending
up in the dumped image.

diff --git a/src/Makefile.in b/src/Makefile.in
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -572,7 +572,7 @@ emacs$(EXEEXT): temacs$(EXEEXT) \
                 lisp.mk $(etc)/DOC $(lisp) \
                 $(lispsource)/international/charprop.el ${charsets}
 ifeq ($(DUMPING),unexec)
-	LC_ALL=C $(RUN_TEMACS) -batch $(BUILD_DETAILS) -l loadup --temacs=dump
+	env -i LC_ALL=C $(RUN_TEMACS) -batch $(BUILD_DETAILS) -l loadup --temacs=dump
   ifneq ($(PAXCTL_dumped),)
 	      $(PAXCTL_dumped) emacs$(EXEEXT)
   endif