diff options
author | nectar <nectar@FreeBSD.org> | 2003-12-17 16:13:10 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-12-17 16:13:10 +0000 |
commit | 492b28d48bd32183839e5040a37d6da7b3a2ffe0 (patch) | |
tree | 2a6c52036757b147e4c2cafbd4d8ba53ff66fd8f /kerberos5 | |
parent | bfeab27f1596f88d85c18b717d752fa1d2aa927a (diff) | |
download | FreeBSD-src-492b28d48bd32183839e5040a37d6da7b3a2ffe0.zip FreeBSD-src-492b28d48bd32183839e5040a37d6da7b3a2ffe0.tar.gz |
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>
Diffstat (limited to 'kerberos5')
-rw-r--r-- | kerberos5/Makefile.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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) |