Zstandard is a real-time compression algorithm, providing high compression ratios. It offers a very wide range of compression / speed trade-offs, while being backed by a very fast decoder.
Compile the package:
make prefix=/usr
In the test output there are several places that indicate 'failed'. These are expected and only 'FAIL' is an actual test failure. There should be no test failures.
To test the results, issue:
make check
Install the package:
make prefix=/usr install
Remove the static library:
rm -v /usr/lib/libzstd.a
Clean previous build:
make clean
Compile the package:
CC="gcc -mx32" make prefix=/usr
Install the package:
make prefix=/usr DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR/usr/lib/* /usr/libx32/ sed -e "/^libdir/s/lib$/libx32/" -i /usr/libx32/pkgconfig/libzstd.pc rm -rf DESTDIR