Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jun 2015 13:55:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 201140] sysutils/am-utils gdbm-compatabilty
Message-ID:  <bug-201140-13-gWTVGU481j@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-201140-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-201140-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201140

--- Comment #2 from Walter Schwarzenfeld <w.litter@aon.at> ---
It seems I know why:

.if ${PORT_OPTIONS:MOPENLDAP}
USE_OPENLDAP=    yes
LDFLAGS+=    -L${LOCALBASE}/lib -lgdbm_compat
ONFIGURE_ARGS+=--with-ldap=yes 
        --enable-ldflags=-L${LOCALBASE}/lib \
        --enable-cppflags=-I${LOCALBASE}/include 
DOCS+=        README.ldap ldap-id.txt ldap.schema
PLIST_SUB+=    LDAP_DOC=""
.else
PLIST_SUB+=    LDAP_DOC="@comment "
CONFIGURE_ARGS+=--with-ldap=no
.endif


with

OPENLDAP_CONFIGURE_WITH= ldap \
        -L${LOCALBASE}/lib \
        -I${LOCALBASE}/include

.if ${PORT_OPTIONS:MOPENLDAP}
USE_OPENLDAP=    yes
DOCS+=        README.ldap ldap-id.txt ldap.schema
PLIST_SUB+=    LDAP_DOC=""
.else
PLIST_SUB+=    LDAP_DOC="@comment "
.endif

And now theres no need for "-lgdbm -lgdbm_compat" in the Makefile.
I know there is a other way with the docs, but this I can't figure out.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201140-13-gWTVGU481j>