Push the detection of threading libs support down to ngctl/Makefile

as the latter can be built without threading (with the loss of line
editing functionality).

Pointed by:	glebius
This commit is contained in:
Ruslan Ermilov 2006-11-27 16:55:14 +00:00
parent dfaa9125d8
commit 968ed7eedb
2 changed files with 8 additions and 6 deletions

View File

@ -105,7 +105,7 @@ SUBDIR= ac \
${_ndp} \
newsyslog \
nfsd \
${_ngctl} \
ngctl \
nghook \
nologin \
ntp \
@ -263,11 +263,6 @@ _ypset= ypset
_authpf= authpf
.endif
.if ${MK_LIBTHR} != "no" || \
(${MACHINE_ARCH} != "sparc64" && ${MK_LIBPTHREAD} != "no")
_ngctl= ngctl
.endif
.if ${MK_LPR} != "no"
_lpr= lpr
.endif

View File

@ -1,6 +1,8 @@
# $FreeBSD$
# $Whistle: Makefile,v 1.3 1999/01/16 00:10:11 archie Exp $
.include <bsd.own.mk>
PROG= ngctl
MAN= ngctl.8
SRCS= main.c mkpeer.c config.c connect.c dot.c name.c show.c list.c \
@ -11,6 +13,11 @@ WARNS?= 3
NGCTL_NO_LIBEDIT=
.endif
.if ${MK_LIBTHR} == "no" && \
(${MACHINE_ARCH} == "sparc64" || ${MK_LIBPTHREAD} == "no")
NGCTL_NO_LIBEDIT=
.endif
DPADD= ${LIBNETGRAPH}
LDADD= -lnetgraph