From: espen Date: Thu, 10 Jan 2008 16:50:44 +0000 (+0000) Subject: Added parameter to control default value of ABSOLUTE slots in shared objects and... X-Git-Tag: clg-0-93~17 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/f9b784ebf5abc4f966f6355722795f43e70de7c9 Added parameter to control default value of ABSOLUTE slots in shared objects and libraried --- diff --git a/tools/asdf-extensions.lisp b/tools/asdf-extensions.lisp index 94da8c7..c315dc4 100644 --- a/tools/asdf-extensions.lisp +++ b/tools/asdf-extensions.lisp @@ -1,10 +1,12 @@ (in-package :asdf) -(export '(*dso-extension* *operation* *system* *component*)) +(export '(*absolute-paths-as-default* *dso-extension* + *operation* *system* *component*)) (defparameter *dso-extension* #-(or darwin win32)"so" #+darwin"dylib" #+win32"dll") +(defparameter *absolute-paths-as-default* nil) ;;; The following code is more or less copied from sb-bsd-sockets.asd, ;;; but extended to allow flags to be set in a general way. The class @@ -13,7 +15,8 @@ (defparameter *dso-extension* (defclass shared-object (module) ((ldflags :initform nil :initarg :ldflags) - (absolute :initform nil :initarg :absolute :reader absolute-p))) + (absolute :initform *absolute-paths-as-default* + :initarg :absolute :reader absolute-p))) (defun ensure-namestring (pathname) (namestring @@ -131,7 +134,8 @@ (defmethod perform ((operation load-op) (c c-source-file)) (defclass library (component) ((libdir :initarg :libdir :initform nil) (libname :initarg :libname :initform nil) - (absolute :initform nil :initarg :absolute :reader absolute-p))) + (absolute :initform *absolute-paths-as-default* + :initarg :absolute :reader absolute-p))) (defun split-path (path)