1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
5 ;;;; Name: foreign-loader.lisp
6 ;;;; Purpose: Loads foreign libraries
7 ;;;; Author: Kevin M. Rosenberg
8 ;;;; Date Started: Feb 2002
12 ;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg
14 ;;;; *************************************************************************
16 ;;; For CMUCL, it's necessary to load foreign files separate from their
19 (in-package uffi-tests)
21 #+clisp (uffi:load-foreign-library "/usr/lib/libz.so" :module "z")
23 (unless (uffi:load-foreign-library
24 (uffi:find-foreign-library
29 (list (pathname-directory *load-pathname*)
30 "/usr/local/lib/" #+(or 64bit x86-64) "/usr/lib64/"
31 "/usr/lib/" "/zlib/"))
33 :supporting-libraries '("c"))
34 (warn "Unable to load zlib"))
36 #+clisp (uffi:load-foreign-library "/home/kevin/debian/src/uffi/tests/uffi-c-test.so" :module "uffi_tests")
38 (unless (uffi:load-foreign-library
39 (uffi:find-foreign-library
40 '(#+(or 64bit x86-64) "uffi-c-test64" "uffi-c-test")
41 (list (pathname-directory *load-truename*)
43 "/home/kevin/debian/src/uffi/tests/"))
44 :supporting-libraries '("c")
46 (warn "Unable to load uffi-c-test library"))