From 3da9955ff9068ac94e3e3732325451ca28b79705 Mon Sep 17 00:00:00 2001 From: markm Date: Sat, 28 Apr 2001 07:44:37 +0000 Subject: [PATCH] Allow static linking. Asked for by: BDE --- libexec/rshd/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libexec/rshd/Makefile b/libexec/rshd/Makefile index 735c00d09d9e..e5e5cdb9da68 100644 --- a/libexec/rshd/Makefile +++ b/libexec/rshd/Makefile @@ -21,3 +21,8 @@ LDADD+= ${MINUSLPAM} CFLAGS+= -DINET6 .include + +.if defined(NOSHARED) && !defined(NOPAM) +DPADD+= ${LIBCRYPTO} +LDADD+= -L${.OBJDIR}/../../secure/lib/libssh -lssh -lcrypto +.endif