aboutsummaryrefslogtreecommitdiffstats
path: root/usr.bin/cpio/Makefile
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2009-04-18 06:03:09 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2009-04-18 06:03:09 +0000
commit79cf3de4233ad73b4491ba146babef278416c8d5 (patch)
tree536dd333cddcaf3a8eabb73a8692db471b51c59f /usr.bin/cpio/Makefile
parent3b495423e3a15d894814a8408c7f98bc19f0996a (diff)
downloadsrc-79cf3de4233ad73b4491ba146babef278416c8d5.tar.gz
src-79cf3de4233ad73b4491ba146babef278416c8d5.zip
Make -lcrypto usage dependent on whether or not we're building with OpenSSL.
Notes
Notes: svn path=/head/; revision=191240
Diffstat (limited to 'usr.bin/cpio/Makefile')
-rw-r--r--usr.bin/cpio/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cpio/Makefile b/usr.bin/cpio/Makefile
index c7301d4737e6..fce50b223b77 100644
--- a/usr.bin/cpio/Makefile
+++ b/usr.bin/cpio/Makefile
@@ -9,7 +9,10 @@ WARNS?= 6
DPADD= ${LIBARCHIVE} ${LIBZ} ${LIBBZ2}
CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\"
CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
-LDADD+= -larchive -lz -lbz2 -lmd -lcrypto
+LDADD+= -larchive -lz -lbz2 -lmd
+.if ${MK_OPENSSL} != "no"
+LDADD+= -lcrypto
+.endif
.if ${MK_GNU_CPIO} != "yes"
SYMLINKS=bsdcpio ${BINDIR}/cpio