summaryrefslogtreecommitdiffstats
path: root/usr.bin/cpio
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2009-04-18 06:03:09 +0000
committerkientzle <kientzle@FreeBSD.org>2009-04-18 06:03:09 +0000
commit392ab3c6f70a50a4925ea71295af978a7e5a9181 (patch)
tree536dd333cddcaf3a8eabb73a8692db471b51c59f /usr.bin/cpio
parent7d9a6f5de15af14ca25407bf1a077702cd55aac6 (diff)
downloadFreeBSD-src-392ab3c6f70a50a4925ea71295af978a7e5a9181.zip
FreeBSD-src-392ab3c6f70a50a4925ea71295af978a7e5a9181.tar.gz
Make -lcrypto usage dependent on whether or not we're building with OpenSSL.
Diffstat (limited to 'usr.bin/cpio')
-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 c7301d4..fce50b2 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
OpenPOWER on IntegriCloud