From: Ken Brown Date: Sat, 18 Sep 2021 18:03:41 +0000 (-0400) Subject: Fix build with native compilation on Cygwin X-Git-Tag: emacs-28.0.90~830 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=19e72564b25ed00001ee25995df6fa1f049d45ff;p=emacs.git Fix build with native compilation on Cygwin * src/Makefile.in (emacs$(EXEEXT)) [CYGWIN]: Rebase the *.eln files after they are all created, to avoid fork problems later in the build. (Bug#50666) --- diff --git a/src/Makefile.in b/src/Makefile.in index 732cd8f0998..bb69a657077 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -547,6 +547,8 @@ ${charscript}: FORCE ${lispintdir}/characters.elc: ${charscript:.el=.elc} +SYSTEM_TYPE = @SYSTEM_TYPE@ + ## The dumped Emacs is as functional and more efficient than ## bootstrap-emacs, so we replace the latter with the former. ## Strictly speaking, emacs does not depend directly on all of $lisp, @@ -555,6 +557,9 @@ ${lispintdir}/characters.elc: ${charscript:.el=.elc} emacs$(EXEEXT): temacs$(EXEEXT) \ lisp.mk $(etc)/DOC $(lisp) \ $(lispsource)/international/charprop.el ${charsets} +ifeq ($(SYSTEM_TYPE),cygwin) + find ${top_builddir} -name '*.eln' | rebase -v -O -T - +endif ifeq ($(DUMPING),unexec) LC_ALL=C $(RUN_TEMACS) -batch $(BUILD_DETAILS) -l loadup --temacs=dump ifneq ($(PAXCTL_dumped),)