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

Ilmar S. Habibulin ilmar at watson.org
Mon Jul 21 01:42:45 PDT 2003


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.


More information about the freebsd-hackers mailing list