aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/qpopper/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/qpopper/Makefile b/mail/qpopper/Makefile
index bb100370047f..966b6ee58e01 100644
--- a/mail/qpopper/Makefile
+++ b/mail/qpopper/Makefile
@@ -50,7 +50,11 @@ CONFIGURE_ARGS+= --with-openssl=/usr
.elif exists(${LOCALBASE}/lib/libssl.a) && exists(${LOCALBASE}/lib/libcrypto.a)
LIB_DEPENDS+= ssl.1:${PORTSDIR}/security/openssl
CONFIGURE_ARGS+= -with-includes=${LOCALBASE}/include/openssl --with-openssl=${LOCALBASE}
-CONFIGURE_ENV+= RSAGLUE="-lrsaref -lRSAglue"
+CONFIGURE_ENV+= RSAGLUE="${RSAGLUE}"
+.if exists(${LOCALBASE}/lib/librsaref.a)
+RSAGLUE= -lrsaref
+.endif
+RSAGLUE+= -lRSAglue
.endif
post-patch: