From 492b28d48bd32183839e5040a37d6da7b3a2ffe0 Mon Sep 17 00:00:00 2001 From: nectar Date: Wed, 17 Dec 2003 16:13:10 +0000 Subject: 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(-) (limited to 'kerberos5') diff --git a/kerberos5/Makefile.inc b/kerberos5/Makefile.inc index c553e85..2a6a2dc 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) -- cgit v1.1