X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fforeign.lisp;h=8c32729a9f935da63effb445d56688e08807f562;hb=eaec8176060e89efa39f01017df1f6204e491ecc;hp=4e10afe4964b8b79f50d04f820fe470fb2403c11;hpb=48ec282d877900caf5ea4ab42e9d87e566ce6b43;p=sbcl.git diff --git a/src/code/foreign.lisp b/src/code/foreign.lisp index 4e10afe..8c32729 100644 --- a/src/code/foreign.lisp +++ b/src/code/foreign.lisp @@ -16,8 +16,8 @@ (defun extern-alien-name (name) (handler-case - #!+elf (coerce name 'base-string) - #!+(or mach-o win32) (concatenate 'base-string "_" name) + #!-win32 (coerce name 'base-string) + #!+win32 (concatenate 'base-string "_" name) (error () (error "invalid external alien name: ~S" name)))) @@ -95,12 +95,16 @@ if the symbol isn't found." #!+os-provides-dlopen (reopen-shared-objects) #!+linkage-table - (update-linkage-table)) + ;; Don't warn about undefined aliens on startup. The same core can + ;; reasonably be expected to work with different versions of the + ;; same library. + (handler-bind ((style-warning #'muffle-warning)) + (update-linkage-table))) ;;; Cleanups before saving a core #-sb-xc-host (defun foreign-deinit () - #!+(and os-provides-dlopen (not linkage-table)) + #!+(and os-provides-dlopen (or (not linkage-table) win32)) (when (dynamic-foreign-symbols-p) (warn "~@