summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
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/tar
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/tar')
-rw-r--r--usr.bin/tar/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tar/Makefile b/usr.bin/tar/Makefile
index 28007f7e..1099846 100644
--- a/usr.bin/tar/Makefile
+++ b/usr.bin/tar/Makefile
@@ -1,11 +1,15 @@
# $FreeBSD$
+.include <bsd.own.mk>
PROG= bsdtar
BSDTAR_VERSION_STRING=2.7.0
SRCS= bsdtar.c cmdline.c getdate.c matching.c read.c siginfo.c subst.c tree.c util.c write.c
WARNS?= 5
DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
-LDADD= -larchive -lbz2 -lz -lmd -lcrypto
+LDADD= -larchive -lbz2 -lz -lmd
+.if ${MK_OPENSSL} != "no"
+LDADD+= -lcrypto
+.endif
CFLAGS+= -DBSDTAR_VERSION_STRING=\"${BSDTAR_VERSION_STRING}\"
CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
CFLAGS+= -I${.CURDIR}
OpenPOWER on IntegriCloud