Build zstandard with threading enabled

This commit is contained in:
Baptiste Daroussin 2017-05-06 10:59:10 +00:00
parent c3b26e0c47
commit 1fc317e374
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317879
3 changed files with 6 additions and 2 deletions

View File

@ -22,7 +22,9 @@ SRCS= entropy_common.c \
zdict.c
WARNS= 2
INCS= zstd.h
CFLAGS+= -I${ZSTDDIR}/lib -I${ZSTDDIR}/lib/common -DXXH_NAMESPACE=ZSTD_
CFLAGS+= -I${ZSTDDIR}/lib -I${ZSTDDIR}/lib/common -DXXH_NAMESPACE=ZSTD_ \
-DZSTD_MULTITHREAD=1
LIBADD= pthread
PRIVATELIB= yes

View File

@ -209,6 +209,7 @@ _LIBRARIES+= \
# 2nd+ order consumers. Auto-generating this would be better.
_DP_80211= sbuf bsdxml
_DP_archive= z bz2 lzma bsdxml
_DP_zstd= pthread
.if ${MK_BLACKLIST} != "no"
_DP_blacklist+= pthread
.endif

View File

@ -13,7 +13,8 @@ CFLAGS+= -I${SRCTOP}/contrib/zstd/programs \
-I${SRCTOP}/contrib/zstd/lib/dictBuilder \
-I${SRCTOP}/contrib/zstd/lib \
-DXXH_NAMESPACE=ZSTD_ \
-DHAVE_THREAD=1
-DHAVE_THREAD=1 \
-DZSTD_MULTITHREAD=1
SCRIPTS= zstdgrep
LINKS= ${BINDIR}/zstd ${BINDIR}/unzstd \
${BINDIR}/zstd ${BINDIR}/zstdcat \