summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2012-09-14 13:00:43 +0000
committerdes <des@FreeBSD.org>2012-09-14 13:00:43 +0000
commitd123c9234ae289c7dbbfc08aa606b6210225894c (patch)
tree89d24b3ace757e720aa805edd70372169e23c164 /usr.bin
parentf1f9181f8f4d1c028699c9065064f1bf4f47b703 (diff)
downloadFreeBSD-src-d123c9234ae289c7dbbfc08aa606b6210225894c.zip
FreeBSD-src-d123c9234ae289c7dbbfc08aa606b6210225894c.tar.gz
Use libmd if and only if OpenSSL is not available.
PR: bin/171402 MFC after: 3 days
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/fetch/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/fetch/Makefile b/usr.bin/fetch/Makefile
index 6f0db80..687f3ea 100644
--- a/usr.bin/fetch/Makefile
+++ b/usr.bin/fetch/Makefile
@@ -4,11 +4,12 @@
PROG= fetch
CSTD?= c99
+.if ${MK_OPENSSL} != "no"
+DPADD= ${LIBFETCH} ${LIBSSL} ${LIBCRYPTO}
+LDADD= -lfetch -lssl -lcrypto
+.else
DPADD= ${LIBFETCH} ${LIBMD}
LDADD= -lfetch -lmd
-.if ${MK_OPENSSL} != "no"
-DPADD+= ${LIBSSL} ${LIBCRYPTO}
-LDADD+= -lssl -lcrypto
.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud