]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix build on Cygwin
authorKen Brown <kbrown@cornell.edu>
Sun, 5 Feb 2017 19:58:59 +0000 (14:58 -0500)
committerKen Raeburn <raeburn@raeburn.org>
Sat, 22 Jul 2017 08:36:21 +0000 (04:36 -0400)
* configure.ac: Use system malloc on Cygwin.

* lisp/loadup.el: Use ".exe" suffix on Cygwin.

configure.ac
lisp/loadup.el

index 056c8c35c5704c543f57f307321d6476ba6279cd..4628cfb85768f14a998fa075f425dca6cf431547 100644 (file)
@@ -2204,9 +2204,7 @@ system_malloc=yes
 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
 
index 956ee790bea54916c2fa27c603937cefe339450d..6a9d4aa98b91a6340baf9e533413e05190ecfb67 100644 (file)
@@ -463,7 +463,7 @@ lost after dumping")))
       ;; 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)