mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 22:36:24 +01:00
ff75e00737
The framework now ensure by itself that pthread is added to the link chain as the last component if linked to kerberos hence avoid with out any explicit addition prevent issue like CVE-2014-8475
29 lines
488 B
Makefile
29 lines
488 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= sftp-server
|
|
SRCS= sftp-server.c sftp-common.c sftp-server-main.c
|
|
MAN= sftp-server.8
|
|
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
|
|
|
|
.if !defined(NO_SHARED)
|
|
# required when linking with a dynamic libssh
|
|
SRCS+= roaming_dummy.c
|
|
.endif
|
|
|
|
LIBADD= ssh
|
|
|
|
.if ${MK_LDNS} != "no"
|
|
CFLAGS+= -DHAVE_LDNS=1
|
|
#DPADD+= ${LIBLDNS}
|
|
#LDADD+= -lldns
|
|
#USEPRIVATELIB+= ldns
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.PATH: ${SSHDIR}
|
|
|
|
${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
|