X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fforeign.lisp;h=bd89cd83e8e977a0cfa38553a93a0ab36f06cebd;hb=007bcd5aac2f3a1e714563bd39f7a2db2d0bf7c2;hp=430614ec86e04b4156debdeeda0e3453f901f457;hpb=25fe91bf63fd473d9316675b0e0ca9be0079e9eb;p=sbcl.git diff --git a/src/code/foreign.lisp b/src/code/foreign.lisp index 430614e..bd89cd8 100644 --- a/src/code/foreign.lisp +++ b/src/code/foreign.lisp @@ -34,7 +34,10 @@ (let ((extern (extern-alien-name name))) (values (or (gethash extern table) - (gethash (concatenate 'base-string "ldso_stub__" extern) table))))) + (gethash (concatenate 'base-string + #!+(and darwin (or x86 x86-64 ppc)) "_ldso_stub__" + #!-(and darwin (or x86 x86-64 ppc)) "ldso_stub__" + extern) table))))) (defun find-foreign-symbol-address (name) "Returns the address of the foreign symbol NAME, or NIL. Does not enter the @@ -104,7 +107,7 @@ if the symbol isn't found." ;;; 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 "~@