Build zstandard with threading enabled
This commit is contained in:
parent
e8938e07cb
commit
7f77dcaf84
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user