summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-07-27 14:19:30 +0000
committeryar <yar@FreeBSD.org>2006-07-27 14:19:30 +0000
commit02be1e49b6c9968f43b0f169ac9aa32676692e67 (patch)
treecff84b911e3928deb00aa088e8845530a358f9f5 /usr.bin
parent596afebac08100110bb37a7afb351085240ed0f8 (diff)
downloadFreeBSD-src-02be1e49b6c9968f43b0f169ac9aa32676692e67.zip
FreeBSD-src-02be1e49b6c9968f43b0f169ac9aa32676692e67.tar.gz
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.)
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/telnet/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile
index 424f261..c688c52 100644
--- a/usr.bin/telnet/Makefile
+++ b/usr.bin/telnet/Makefile
@@ -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
OpenPOWER on IntegriCloud