Fix SB-EXECUTABLE on win32. (Patch by Marko Kocic, sbcl-devel
"sb-executable mingw patch" on 2006-08-29).
* Yes, SB-EXECUTABLE is mostly useless, since nobody uses it
for making "executables". But there are libraries that load
SB-EXECUTABLE for the unfortunately exported COPY-STREAM
function.
* Oops, whitespace damage from 0.9.18.23.
(defun make-executable (output-file fasls
&key (runtime-flags '("--disable-debugger"
- "--userinit /dev/null"
- "--sysinit /dev/null"))
+ "--no-userinit"
+ "--no-sysinit"))
initial-function)
"Write an executable called OUTPUT-FILE which can be run from the shell, by 'linking' together code from FASLS. Actually works by concatenating them and prepending a #! header"
(with-open-file (out output-file
(let* (;; FIXME: use OUT as the pathname designator
(out-name (namestring (translate-logical-pathname output-file)))
(prot (elt (multiple-value-list (sb-unix:unix-stat out-name)) 3)))
+ #-win32
(if prot
(sb-unix::void-syscall ("chmod" c-string int)
out-name
;; Note: _stat, _lstat, and _fstat for NetBSD are provided in
;; src/runtime/bsd-os.c. See comments in that file
;; for an explanation. -- RMK 2006-10-15
-(define-stat-call #-(or win32 netbsd) "stat" #+(or win32 netbsd) "_stat"
+(define-stat-call #-(or win32 netbsd) "stat" #+(or win32 netbsd) "_stat"
pathname filename
(function int c-string (* alien-stat)))
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.18.23"
+"0.9.18.24"