[Ecls-list] load-pathname in .o processing
Rick Taube
taube at uiuc.edu
Sat Oct 21 15:24:24 UTC 2006
i think its a problem that standalone apps seem to process .o files
sort of like lisp loading but without lisp globals in effect. so lisp
programs will break if they depend on *load-truename* etc when they
are loaded. you can see what i mean using this example:
;;------------------------------------------loa.lisp
(in-package :cl-user)
(defparameter *here* *load-truename*)
;; eof
$ ecl
> (compile-file "loa")
> (load "loa")
> *here*
#P"/Lisp/cm/src/loa.fas"
> (compile-file "loa.lisp" :system-p t)
> (c:build-program "loa-app" :lisp-files '("loa.o") :epilogue-code
'(print (list :here-> *here*)))
> (quit)
galen:/Lisp/cm/src hkt$ ./loa-app
(:HERE-> NIL )
so the lisp program that depends on *here* will break.
how do i get around this?
--rick
More information about the ecl-devel
mailing list