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:
parent
a5b061f9d2
commit
e768886dfc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user