diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2024-05-03 13:37:29 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2024-05-03 13:39:37 +0000 |
commit | a25e0ba57ee17e75ab27fdc09ac3275a8215087e (patch) | |
tree | cd48c02411fce75859929bce2841b8ff5565f97d | |
parent | 7206f7c619912bdd4d54dd539824733eae50c3a9 (diff) | |
download | src-a25e0ba57ee17e75ab27fdc09ac3275a8215087e.tar.gz src-a25e0ba57ee17e75ab27fdc09ac3275a8215087e.zip |
libarchive: fix thread autodetermination for zstd compression format
The libarchive code uses sysconf(3) to determine the number of threads
when 0 has been given as the number of thread to use
MFC after: 3 days
-rw-r--r-- | lib/libarchive/Makefile.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libarchive/Makefile.inc b/lib/libarchive/Makefile.inc index 153f96b12165..755a39ec01e8 100644 --- a/lib/libarchive/Makefile.inc +++ b/lib/libarchive/Makefile.inc @@ -4,7 +4,8 @@ LIBADD= z bz2 lzma bsdxml zstd CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 \ - -DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1 -DHAVE_ZSTD_compressStream=1 + -DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1 -DHAVE_ZSTD_compressStream=1 \ + -DHAVE_SYSCONF=1 CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\" .if ${MK_OPENSSL} != "no" |