diff --git a/usr.sbin/nscd/Makefile b/usr.sbin/nscd/Makefile --- a/usr.sbin/nscd/Makefile +++ b/usr.sbin/nscd/Makefile @@ -9,6 +9,10 @@ CFLAGS+= -DCONFIG_PATH="\"${PREFIX}/etc/nscd.conf\"" LIBADD= util pthread +# This is needed to have the _nss_cache_cycle_prevention_symbol +# visible to dlsym() so the caching code can skip cache lookups in the +# caching daemon. DO NOT REMOVE +LDFLAGS= -Wl,-export-dynamic .PATH: ${.CURDIR}/agents .include "${.CURDIR}/agents/Makefile.inc"