Date: Mon, 21 Jul 2003 15:55:27 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: "Ilmar S. Habibulin" <ilmar@watson.org> Cc: freebsd-hackers@freebsd.org Subject: Re: How to use functions from libs in /usr/local/lib in pam? Message-ID: <20030721125527.GC95314@sunbay.com> In-Reply-To: <20030721043657.X96418@fledge.watson.org> References: <20030721071842.GC58121@cobweb.example.org> <20030721043657.X96418@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--HG+GLK89HZ1zG0kk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 21, 2003 at 04:42:12AM -0400, Ilmar S. Habibulin wrote: >=20 > I'm trying to write pam module, which uses libs from /usr/local/lib (lber > and lsap). What should i put in Makefile in order to link module with this > libs? >=20 > LIBLDAP=3D /usr/local/lib/ldap.a >=20 > LDADD+=3D -L/usr/local/lib -lldap > LDFLAGS +=3D -L/usr/local/lib -lldap > DPADD=3D ${LIBCRYPT} ${LIBLDAP} >=20 > doesn't help. >=20 The library should be named /usr/local/lib/libldap.a at the minimum, to make -lldap work. Also, -L should be taken out of LDADD, and be put only in LDFLAGS, so it should look like this: LIBLDAP=3D /usr/local/lib/libldap.a DPADD=3D ${LIBCRYPT} ${LIBLDAP} LDADD=3D -lcrypt -lldap LDFLAGS=3D -L/usr/local/lib Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software Ltd, ru@FreeBSD.org FreeBSD committer --HG+GLK89HZ1zG0kk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD4DBQE/G+K/Ukv4P6juNwoRAgsxAJ0TuWS6OzebTKnoiOCNNzNqYZDsaACY4fpa lYdVZEMT2cAlF3YtB86TRw== =oSXy -----END PGP SIGNATURE----- --HG+GLK89HZ1zG0kk--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030721125527.GC95314>