]> git.ipfire.org Git - thirdparty/zstd.git/commit
Avoid xxHash Dependency by Inlining 2977/head
authorW. Felix Handte <w@felixhandte.com>
Thu, 6 Jan 2022 05:20:49 +0000 (00:20 -0500)
committerW. Felix Handte <w@felixhandte.com>
Thu, 6 Jan 2022 05:25:26 +0000 (00:25 -0500)
commit4bd96a61f103ac7ed8b52d39e99424f2f9b52643
tree94188b3358dda82482ead4c4c36a32fa6a6c9035
parentfc946d131b3a028c23d2ae84ade6b6114aa6fec2
Avoid xxHash Dependency by Inlining

xxHash symbols are present in `libzstd.so`, but they are local and therefore
unavailable outside the lib. There are two possible solutions to the problem.
We could make those symbols global, or we could remove the dependency.

This commit chooses the latter approach. I suppose this comes at the cost of
code size / build time. I'm open to comments on whether this is a good thing
to do, especially since this will apply even when we are statically linking
everything.
programs/benchzstd.c