Build zstandard with threading enabled

This commit is contained in:
bapt 2017-05-06 10:59:10 +00:00
parent e8938e07cb
commit 7f77dcaf84
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 \