864c53ead8
This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
# Do not define -DKLUDGELINEMODE, as it does not interact well with many
|
|
# telnet implementations.
|
|
|
|
.include <src.opts.mk>
|
|
|
|
TELNETDIR= ${.CURDIR}/../../contrib/telnet
|
|
.PATH: ${TELNETDIR}/telnetd
|
|
|
|
PROG= telnetd
|
|
MAN= telnetd.8
|
|
|
|
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
|
|
termstat.c utility.c
|
|
|
|
WARNS?= 2
|
|
WFORMAT?= 0
|
|
|
|
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
|
-DENV_HACK -DSTREAMSPTY
|
|
|
|
NO_PIE= yes
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+= -DINET6
|
|
.endif
|
|
|
|
CFLAGS+= -I${TELNETDIR}
|
|
|
|
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
|
|
|
|
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
|
|
LDADD= -lutil -ltermcap ${LIBTELNET}
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
SRCS+= authenc.c
|
|
CFLAGS+= -DAUTHENTICATION -DENCRYPTION
|
|
DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
|
|
LDADD+= -lmp -lcrypto -lcrypt ${MINUSLPAM}
|
|
.endif
|
|
|
|
.if ${MK_KERBEROS_SUPPORT} != "no"
|
|
CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
|
|
DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
|
|
LDADD+= -lkrb5 -lhx509 -lasn1 -lroken -lcom_err
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|