zstd(1): Enable multi-threading support in the zstd(1) utility

Operating Systems / DragonFlyBSD - Sascha Wildner [online.de] - 4 April 2021 13:12 UTC

Note that it is only used when -T is specified.

Leave libzstd itself without multi-threading, to prevent libarchive from getting a libpthread dependency. Instead, compile libzstd's necessary bits into zstd(1) and enable multi-threading only in the utilitily.

For detailed reasoning on this, please check zrj's commit message for 3ff63cdaea3abd5eece6e57d01a1ab57a4312636.

While here, clean up libzstd's Makefile a bit.

5ebc8a7fe4 zstd(1): Enable multi-threading support in the zstd(1) utility.
lib/libzstd/Makefile | 8 --------
usr.bin/zstd/Makefile | 35 +++++++++++++++++++++++++++--------
2 files changed, 27 insertions(+), 16 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share