- Make heimdal buildable with WITH_OPENLDAP defined, again.

- Our heimdal uses the deprecated OpenLDAP functions.
This commit is contained in:
Hajimu UMEMOTO 2011-12-05 16:38:52 +00:00
parent b66c0c3405
commit 782ed6d3d7
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/../../include
OPENLDAPBASE?= /usr/local
LDAPLDADD= -lldap -llber
LDAPDPADD= ${LDAPLDADD:C;^-l(.*)$;${OPENLDAPBASE}/lib/lib\1.a;}
LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1
LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1 -DLDAP_DEPRECATED=1
LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -Wl,-rpath,${OPENLDAPBASE}/lib
.endif

View File

@ -1,9 +1,9 @@
# $FreeBSD$
LIB= hdb
LDFLAGS= -Wl,--no-undefined
LDADD= -lasn1 -lcom_err -lkrb5 -lroken
DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN}
LDFLAGS= -Wl,--no-undefined ${LDAPLDFLAGS}
LDADD= -lasn1 -lcom_err -lkrb5 -lroken ${LDAPLDADD}
DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} ${LDAPDPADD}
INCS= hdb-private.h \
hdb-protos.h \