diff options
author | yar <yar@FreeBSD.org> | 2006-07-27 14:19:30 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-07-27 14:19:30 +0000 |
commit | 02be1e49b6c9968f43b0f169ac9aa32676692e67 (patch) | |
tree | cff84b911e3928deb00aa088e8845530a358f9f5 | |
parent | 596afebac08100110bb37a7afb351085240ed0f8 (diff) | |
download | FreeBSD-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.)
-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 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 |