mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-07 23:07:00 +02:00
Too many Makefile commands where hard-coded using SBCL, which prevented from building successfully against CCL. That's now fixed.
29 lines
826 B
Common Lisp
29 lines
826 B
Common Lisp
;;;
|
|
;;; At SBCL image startup, we have a situation when the exact pathname for
|
|
;;; the OpenSSL shared Object is not to be found at the same location again.
|
|
;;;
|
|
;;; Hack our way around that by registering hooks to force unloading and
|
|
;;; loading the lib at proper times.
|
|
;;;
|
|
;;; Note: the culprit seems to be qmynd and its usage of :weakly-depends-on
|
|
;;; :cl+ssl in its system definition.
|
|
;;;
|
|
|
|
(in-package #:cl-user)
|
|
|
|
#+ccl
|
|
(progn
|
|
(push (lambda () (cffi:close-foreign-library 'CL+SSL::LIBSSL))
|
|
*save-exit-functions*)
|
|
|
|
(push (lambda () (cffi:load-foreign-library 'CL+SSL::LIBSSL))
|
|
*lisp-startup-functions*))
|
|
|
|
#+sbcl
|
|
(progn
|
|
(push (lambda () (cffi:close-foreign-library 'CL+SSL::LIBSSL))
|
|
sb-ext:*save-hooks*)
|
|
|
|
(push (lambda () (cffi:load-foreign-library 'CL+SSL::LIBSSL))
|
|
sb-ext:*init-hooks*))
|