fasl and program init function names are always the same, don't search
for tag in binary files for this two targets.
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
name))))
(defun guess-init-name (pathname kind)
- (or (and (probe-file pathname)
- (find-init-name pathname :tag (kind->tag kind)))
- (error "Cannot find out entry point for binary file ~A" pathname)))
+ (case kind
+ ((:object :c :static-library :lib :shared-library :dll)
+ (or (and (probe-file pathname)
+ (find-init-name pathname :tag (kind->tag kind)))
+ (error "Cannot find out entry point for binary file ~A" pathname)))
+ (otherwise (compute-init-name pathname kind))))
(defun remove-prefix (prefix name)
(if (equal 0 (search prefix name))