Re: How to use functions from libs in /usr/local/lib in pam?

2003-07-21 Thread Ruslan Ermilov
On Mon, Jul 21, 2003 at 04:42:12AM -0400, Ilmar S. Habibulin wrote:
> 
> 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?
> 
> LIBLDAP= /usr/local/lib/ldap.a
> 
> LDADD+= -L/usr/local/lib -lldap
> LDFLAGS += -L/usr/local/lib -lldap
> DPADD= ${LIBCRYPT} ${LIBLDAP}
> 
> doesn't help.
> 
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=/usr/local/lib/libldap.a
DPADD=  ${LIBCRYPT} ${LIBLDAP}
LDADD=  -lcrypt -lldap
LDFLAGS=-L/usr/local/lib


Cheers,
-- 
Ruslan Ermilov  Sysadmin and DBA,
[EMAIL PROTECTED]   Sunbay Software Ltd,
[EMAIL PROTECTED]   FreeBSD committer


pgp0.pgp
Description: PGP signature


How to use functions from libs in /usr/local/lib in pam?

2003-07-21 Thread Ilmar S. Habibulin

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?

LIBLDAP= /usr/local/lib/ldap.a

LDADD+= -L/usr/local/lib -lldap
LDFLAGS += -L/usr/local/lib -lldap
DPADD= ${LIBCRYPT} ${LIBLDAP}

doesn't help.

Thanks in advance.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"