diff options
author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-07-27 14:19:30 +0000 |
---|---|---|
committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-07-27 14:19:30 +0000 |
commit | d1773e839f6f75f906e5ed8fda29cbaa91b9e621 (patch) | |
tree | cff84b911e3928deb00aa088e8845530a358f9f5 /usr.bin | |
parent | 46ae6656134cb0ff299fa4be1664c328ea05c1e7 (diff) | |
download | src-d1773e839f6f75f906e5ed8fda29cbaa91b9e621.tar.gz src-d1773e839f6f75f906e5ed8fda29cbaa91b9e621.zip |
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.)
Notes
Notes:
svn path=/head/; revision=160749
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/telnet/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile index 424f261376c9..c688c5231ace 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 |