X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=interfaces%2Fpostgresql%2Fpostgresql-loader.cl;fp=interfaces%2Fpostgresql%2Fpostgresql-loader.cl;h=e57470e6322a64f0661671563da6c3857428eaac;hb=2359c743fa126e65514454a7996e025f139a8241;hp=f9d6f1cf85036dc3956520d916c330c89861a649;hpb=14e7eb14df86493ad043f11b2dd142d329e415be;p=clsql.git diff --git a/interfaces/postgresql/postgresql-loader.cl b/interfaces/postgresql/postgresql-loader.cl index f9d6f1c..e57470e 100644 --- a/interfaces/postgresql/postgresql-loader.cl +++ b/interfaces/postgresql/postgresql-loader.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: postgresql-loader.cl,v 1.3 2002/03/24 04:37:09 kevin Exp $ +;;;; $Id: postgresql-loader.cl,v 1.4 2002/04/01 05:27:55 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -49,10 +49,14 @@ set to the right path before compiling or loading the system.") (defmethod clsql-sys:database-type-load-foreign ((database-type (eql :postgresql))) (when - (uffi:load-foreign-library *postgresql-library-filename* - :module "postgresql" - :supporting-libraries - *postgresql-supporting-libraries*) + (uffi:load-foreign-library + (uffi:find-foreign-library + "libpq" + '("/opt/postgresql/lib/" "/usr/local/lib" "usr/lib/" + "/postgresql/lib/")) + :module "postgresql" + :supporting-libraries + *postgresql-supporting-libraries*) (setq *postgresql-library-loaded* t))) (clsql-sys:database-type-load-foreign :postgresql)