From e768886dfcd303567c4c98d592af312cf5611801 Mon Sep 17 00:00:00 2001 From: Jacques Vidrine Date: Wed, 17 Dec 2003 16:13:10 +0000 Subject: [PATCH] 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 --- kerberos5/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kerberos5/Makefile.inc b/kerberos5/Makefile.inc index c553e85545f5..2a6a2dc4fbf2 100644 --- a/kerberos5/Makefile.inc +++ b/kerberos5/Makefile.inc @@ -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)