diff --git a/lib/libskey/Makefile b/lib/libskey/Makefile index 6e3fe9292e5e..63df390abf7b 100644 --- a/lib/libskey/Makefile +++ b/lib/libskey/Makefile @@ -11,6 +11,11 @@ MAN5= skey.access.5 CFLAGS+=-DPERMIT_CONSOLE -D_SKEY_INTERNAL -I${.CURDIR} +.if ${BINFORMAT} == elf +DPADD+= ${LIBCRYPT} ${LIBMD} +LDADD+= -lcrypt -lmd +.endif + beforeinstall: ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/skey.h \ ${DESTDIR}/usr/include