Make -lcrypto usage dependent on whether or not we're building with OpenSSL.

This commit is contained in:
Tim Kientzle 2009-04-18 06:03:09 +00:00
parent 3b495423e3
commit 79cf3de423
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191240
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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}