diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile index 9aeab03ff6e9..97297e7628dd 100644 --- a/usr.sbin/sendmail/Makefile +++ b/usr.sbin/sendmail/Makefile @@ -42,8 +42,9 @@ LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a DPADD+= ${LIBSMUTIL} LDADD+= ${LIBSMUTIL} -.if exists(../../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && \ - !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH) +.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && \ + !defined(NOSECURE) && !defined(NO_OPENSSL) && \ + !defined(RELEASE_CRUNCH) # STARTTLS support DISTRIBUTION= crypto CFLAGS+= -DSTARTTLS -D_FFR_TLS_O_T -D_FFR_TLS_1 -D_FFR_TLS_TOREK