In #28766 (moved) we tried to enable ZSTD support for Android but just specifying --enable-zstd when compiling tor and extracting the library is not enough:
WARNING: Unable to find libzstd, install pkg-config, and check the PKG_CONFIG_PATH environment variable, or set ZSTD_CFLAGS and ZSTD_LIBS
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
Installing pkg-config and pointing it to /var/tmp/dist/zstd/lib/pkgconfig
Setting ZSTD_CFLAGS and ZSTD_LIBS properly.
I opted for 2) as 1) needs pkg-config installed (presumable for all other platforms as well if we want to keep the container amount low) and we end up with -L/var/tmp/dist/zstd/lib -lzstd for ld which is not really needed. Pointing directly to the static lib we want to have used should be enough if I understand things correctly.