]> git.eshelyaron.com Git - emacs.git/commitdiff
Fixed hard link to emacs.exe in non-MSYS build.
authorEli Zaretskii <eliz@gnu.org>
Tue, 16 Apr 2013 16:55:02 +0000 (19:55 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 16 Apr 2013 16:55:02 +0000 (19:55 +0300)
lisp/loadup.el

index 3970e514376f1e519209e9786da7b877a206db09..75659d88ac4bd77e7a6814dabc88336e8f422043 100644 (file)
                                 (substring name (match-end 0)))))
            (setq name (concat name exe))
             (message "Adding name %s" name)
-           (add-name-to-file (concat "emacs" exe) name t)))
+           ;; When this runs on Windows, invocation-directory is not
+           ;; necessarily the current directory.
+           (add-name-to-file (expand-file-name (concat "emacs" exe)
+                                               invocation-directory)
+                             (expand-file-name name invocation-directory)
+                             t)))
       (kill-emacs)))
 
 ;; For machines with CANNOT_DUMP defined in config.h,