]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix build with native compilation on Cygwin
authorKen Brown <kbrown@cornell.edu>
Sat, 18 Sep 2021 18:03:41 +0000 (14:03 -0400)
committerKen Brown <kbrown@cornell.edu>
Sun, 19 Sep 2021 16:19:36 +0000 (12:19 -0400)
* 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)

src/Makefile.in

index 732cd8f0998168acb2369a41c62e621aba2bd68a..bb69a657077f0a8ec571aefd7da70c9da0ca4812 100644 (file)
@@ -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),)