Make it buildable with WITH_OPENLDAP, again.

MFC after:	1 week
This commit is contained in:
Hajimu UMEMOTO 2015-08-27 15:03:34 +00:00
parent 2c51488ec8
commit 34d2e76a64
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -1,9 +1,10 @@
# $FreeBSD$
LIB= hdb
LDFLAGS= -Wl,--no-undefined
LDFLAGS= -Wl,--no-undefined ${LDAPLDFLAGS}
VERSION_MAP= ${KRB5DIR}/lib/hdb/version-script.map
LIBADD= asn1 com_err krb5 roken sqlite3
LDADD= ${LDAPLDADD}
DPADD= ${LDAPDPADD}
MAN= HDB.3 hdb_entry_ex.3