summaryrefslogtreecommitdiffstats
path: root/lib/libradius/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libradius/Makefile')
-rw-r--r--lib/libradius/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libradius/Makefile b/lib/libradius/Makefile
index 2b769d9..42f5def 100644
--- a/lib/libradius/Makefile
+++ b/lib/libradius/Makefile
@@ -70,13 +70,11 @@ MLINKS+=libradius.3 rad_acct_open.3 \
WARNS?= 3
-.if ${MK_OPENSSL} == "no"
-DPADD= ${LIBMD}
-LDADD= -lmd
-.else
-DPADD= ${LIBCRYPTO}
-LDADD= -lcrypto
+.if ${MK_OPENSSL} != "no"
+LIBADD+= crypto
CFLAGS+= -DWITH_SSL
+.else
+LIBADD+= md
.endif
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud