fix executable distribution creation on Unix
This commit is contained in:
parent
7fbe3c7224
commit
26c0ef99ef
|
@ -310,7 +310,8 @@
|
||||||
(error 'patch-stub-exe-paths
|
(error 'patch-stub-exe-paths
|
||||||
"cannot find config info"))
|
"cannot find config info"))
|
||||||
(read-byte i)
|
(read-byte i)
|
||||||
(read-one-int i) ; start of prog
|
(read-one-int i) ; start of decls
|
||||||
|
(read-one-int i) ; start of program
|
||||||
(let ([start (read-one-int i)] ; start of data
|
(let ([start (read-one-int i)] ; start of data
|
||||||
[end (read-one-int i)]) ; end of data
|
[end (read-one-int i)]) ; end of data
|
||||||
(file-position i start)
|
(file-position i start)
|
||||||
|
@ -333,7 +334,7 @@
|
||||||
#:exists 'update
|
#:exists 'update
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(let ([o (current-output-port)])
|
(let ([o (current-output-port)])
|
||||||
(file-position o (+ config-pos 8)) ; update the end of the program data
|
(file-position o (+ config-pos 12)) ; update the end of the program data
|
||||||
(write-one-int (- end delta) o)
|
(write-one-int (- end delta) o)
|
||||||
(flush-output o)
|
(flush-output o)
|
||||||
(file-position o start)
|
(file-position o start)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user