Respect MK_INET6_SUPPORT.

Move INET6 out of the RELEASE_CRUNCH conditional block
because it saves as little as 2% of the binary size and
IPv6 is rather popular today.  (Some other binaries, e.g.,
telnetd, include INET6 for RELEASE_CRUNCH already.)
This commit is contained in:
yar 2006-07-27 14:19:30 +00:00
parent 596afebac0
commit 02be1e49b6

View File

@ -13,13 +13,17 @@ SRCS= commands.c main.c network.c ring.c sys_bsd.c \
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
-I${TELNETDIR} -I${TELNETDIR}/libtelnet/
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
DPADD= ${LIBTERMCAP} ${LIBTELNET}
LDADD= -ltermcap ${LIBTELNET}
.if !defined(RELEASE_CRUNCH)
CFLAGS+= -DINET6 -DIPSEC
CFLAGS+= -DIPSEC
DPADD+= ${LIBIPSEC}
LDADD+= -lipsec
.else