--- openldap-2.4.19.ebuild 2009-11-19 10:00:20.000000000 +0400 +++ openldap-2.4.19-r9000.ebuild 2009-11-19 09:44:44.000000000 +0400 @@ -210,6 +210,7 @@ einfo "Compiling contrib-module: $3" "${lt}" --mode=compile --tag=CC \ "${CC}" \ + -DSLAPD_OVER_`echo $1|tr [:lower:] [:upper:]`=SLAPD_MOD_DYNAMIC \ -I../../../include -I../../../servers/slapd ${CFLAGS} \ -o ${2%.c}.lo -c $2 || die "compiling $3 failed" einfo "Linking contrib-module: $3"