From 165c3356ebb5413277197e4e17c97e7758f96396 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Sun, 5 Feb 2017 14:58:59 -0500 Subject: [PATCH] Fix build on Cygwin * configure.ac: Use system malloc on Cygwin. * lisp/loadup.el: Use ".exe" suffix on Cygwin. --- configure.ac | 4 +--- lisp/loadup.el | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 425e338..c1fd14d 100644 --- a/configure.ac +++ b/configure.ac @@ -2158,9 +2158,7 @@ AC_DEFUN test "$CANNOT_DUMP" = yes || case "$opsys" in ## darwin ld insists on the use of malloc routines in the System framework. - darwin | mingw32 | nacl | sol2-10) ;; - cygwin) hybrid_malloc=yes - system_malloc= ;; + cygwin | darwin | mingw32 | nacl | sol2-10) ;; *) test "$ac_cv_func_sbrk" = yes && system_malloc=$emacs_cv_sanitize_address;; esac diff --git a/lisp/loadup.el b/lisp/loadup.el index 80e9a28..72f24a6 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el @@ -455,7 +455,7 @@ ;; other GNU program's build process. ;; (dump-emacs "emacs" "temacs") ;; (message "%d pure bytes used" pure-bytes-used) - (let ((exe (if (memq system-type '(windows-nt ms-dos)) ".exe" ""))) + (let ((exe (if (memq system-type '(cygwin windows-nt ms-dos)) ".exe" ""))) (copy-file (expand-file-name (concat "temacs" exe) invocation-directory) (expand-file-name (concat "emacs" exe) invocation-directory) t) -- 2.8.3