Do not capture the build-time value of $PATH in the 'emacs' executable since this can noticeably increase the size of the closure of Emacs with things like GCC being referenced. --- emacs-28.1/lisp/loadup.el.orig 2022-03-11 08:04:21.000000000 +0000 +++ emacs-28.1/lisp/loadup.el 2022-04-05 10:53:11.567773405 +0000 @@ -530,7 +530,8 @@ ((equal dump-mode "dump") "emacs") ((equal dump-mode "bootstrap") "emacs") ((equal dump-mode "pbootstrap") "bootstrap-emacs.pdmp") - (t (error "Unrecognized dump mode %s" dump-mode))))) + (t (error "unrecognized dump mode %s" dump-mode)))) + (exec-path nil)) (when (and (featurep 'native-compile) (equal dump-mode "pdump")) ;; Don't enable this before bootstrap is completed, as the