Set RPATH when the Kerberos KDC is linked with the LDAP backend

(`WITH_OPENLDAP').  Previously, the KDC could fail to start if it was
invoked before `ldconfig'.

This solution was chosen rather than adding an `ldconfig' dependency
to `kerberos' in rcNG, because it is more robust and there is no
guarantee that the LDAP libraries will be in ldconfig's path anyway.

Problem reported by:	Sean McNeil <sean@mcneil.com>
This commit is contained in:
Jacques Vidrine 2003-12-17 16:13:10 +00:00
parent a5b061f9d2
commit e768886dfc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123609

View file

@ -16,7 +16,7 @@ CFLAGS+=-DINET6
OPENLDAPBASE?= /usr/local
LDAPLIBS=-lldap -llber
LDAPCFLAGS=-I${OPENLDAPBASE}/include -DOPENLDAP=1
LDAPLDADD=-L${OPENLDAPBASE}/lib ${LDAPLIBS}
LDAPLDADD=-L${OPENLDAPBASE}/lib -Wl,-rpath,${OPENLDAPBASE}/lib ${LDAPLIBS}
.endif
.if exists(${.OBJDIR}/../../include)