diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile index 6c277eaf6834..57a56a5bf8a1 100644 --- a/usr.bin/ar/Makefile +++ b/usr.bin/ar/Makefile @@ -4,8 +4,8 @@ PROG= ar VERSION= 1.0.2 SRCS= ar.c read.c util.c write.c WARNS?= 5 -DPADD= ${LIBARCHIVE} ${LIBELF} -LDADD= -larchive -lelf +DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBELF} +LDADD= -larchive -lbz2 -lz -lelf CFLAGS+= -DBSDAR_VERSION=\"${VERSION}\" LINKS= ${BINDIR}/ar ${BINDIR}/ranlib