mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
a0483764f3
This merge brings in a couple new files, which needed to be attached to the build; a new dependency on <limits.h>, which must be stubbed; and a name change in the Context parameter constants, from ZSTD_p_foo to ZSTD_c_foo. Significantly, it fixes a kernel build error with GCC where floating-point functions were included in the kernel build, by hiding them under the same compile-time #ifdef that already covered their invocation. That issue was introduced to FreeBSD in the 1.3.7 update and tracked upstream here: https://github.com/facebook/zstd/issues/1386 The full 1.3.8 release notes can be found on Github: https://github.com/facebook/zstd/releases/tag/v1.3.8 Relnotes: yes
33 lines
675 B
Makefile
33 lines
675 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= zstd
|
|
SRCS= \
|
|
benchfn.c \
|
|
benchzstd.c \
|
|
datagen.c \
|
|
dibio.c \
|
|
fileio.c \
|
|
util.c \
|
|
zstdcli.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/programs \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib/common \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib/compress \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib/dictBuilder \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib \
|
|
-DXXH_NAMESPACE=ZSTD_ \
|
|
-DHAVE_THREAD=1 \
|
|
-DZSTD_MULTITHREAD=1
|
|
LINKS= ${BINDIR}/zstd ${BINDIR}/unzstd \
|
|
${BINDIR}/zstd ${BINDIR}/zstdcat \
|
|
${BINDIR}/zstd ${BINDIR}/zstdmt
|
|
MLINKS= zstd.1 unzstd.1 \
|
|
zstd.1 zstdcat.1 \
|
|
zstd.1 zstdmt.1
|
|
|
|
WARNS= 2
|
|
LIBADD= zstd
|
|
.PATH: ${SRCTOP}/sys/contrib/zstd/programs
|
|
|
|
.include <bsd.prog.mk>
|