X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fforeign.lisp;h=5cc3cd38a8fec1915fb543661048a160d33230a0;hb=15d6e7c9a2c3234f95dfe278046fa2fee1b0c007;hp=539f2729e05d5fff8fe635945feb72baffa559e6;hpb=9c794e263bcedd4e2b22bb926f329a210e80cc1e;p=sbcl.git diff --git a/src/code/foreign.lisp b/src/code/foreign.lisp index 539f272..5cc3cd3 100644 --- a/src/code/foreign.lisp +++ b/src/code/foreign.lisp @@ -66,17 +66,17 @@ ;;; Cleanups before saving a core #-sb-xc-host (defun foreign-deinit () + ;; KLUDGE: Giving this warning only when non-static foreign symbols + ;; are used would be much nicer, but actually pretty hard: we can + ;; get dynamic symbols thru the runtime as well, so cheking the + ;; list of *shared-objects* is not enough. Eugh & blech. #!+(and os-provides-dlopen (not linkage-table)) - (let ((shared (remove-if #'null (mapcar #'sb!alien::shared-object-file - *shared-objects*)))) - (when shared - (warn "~@" - shared))) + (warn "~@") #!+os-provides-dlopen (close-shared-objects))