summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nscd
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-11-26 14:36:34 +0000
committerru <ru@FreeBSD.org>2006-11-26 14:36:34 +0000
commit815d860c2f47f79db9345169bc2c5885333910b7 (patch)
tree41cff96be947a8a6e2ac9aff5183efb8a82d6d3b /usr.sbin/nscd
parentc2e4cdb2dad69b0a79e0f366b170b021a4cbd8f0 (diff)
downloadFreeBSD-src-815d860c2f47f79db9345169bc2c5885333910b7.zip
FreeBSD-src-815d860c2f47f79db9345169bc2c5885333910b7.tar.gz
- When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.
- Don't build ngctl(8) and cached(8) if threading libs aren't built. - Fix various issues in a cached(8) makefile.
Diffstat (limited to 'usr.sbin/nscd')
-rw-r--r--usr.sbin/nscd/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/usr.sbin/nscd/Makefile b/usr.sbin/nscd/Makefile
index 5478341..4dfd514 100644
--- a/usr.sbin/nscd/Makefile
+++ b/usr.sbin/nscd/Makefile
@@ -1,19 +1,16 @@
# $FreeBSD$
-PROG=cached
-PROGNAME=cached
-MAN=cached.conf.5 cached.8
+PROG= cached
+MAN= cached.conf.5 cached.8
-WARNS?=2
-SRCS= agent.c cached.c cachedcli.c cachelib.c cacheplcs.c debug.c log.c \
+WARNS?= 2
+SRCS= agent.c cached.c cachedcli.c cachelib.c cacheplcs.c debug.c log.c \
config.c query.c mp_ws_query.c mp_rs_query.c singletons.c protocol.c \
parser.c
CFLAGS+= -DCONFIG_PATH="\"${PREFIX}/etc/cached.conf\""
-DPADD+=${LIBM} ${LIBPTHREAD} ${LIBUTIL}
-LDADD+=${LIBM} ${LIBPTHREAD} ${LIBUTIL}
-LDFLAGS+= -Xlinker --export-dynamic
+DPADD= ${LIBM} ${LIBPTHREAD} ${LIBUTIL}
+LDADD= -lm -lpthread -lutil
-.PATH: ${.CURDIR}/agents
-.include "agents/Makefile.inc"
-.include "../Makefile.inc"
+.PATH: ${.CURDIR}/agents
+.include "${.CURDIR}/agents/Makefile.inc"
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud