https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95005
--- Comment #2 from Michael Kuhn <gcc at ikkoku dot de> --- (In reply to Martin Liška from comment #1) > Thank you for the bug report. > I'm sending a better patch, can you please test it? I applied your patch on top of the GCC 10.1.0 tarball. Sadly, it still fails with the same error. It looks like ZSTD_CPPFLAGS is not actually exported/set anywhere (only available in configure), which is why I made use of ZSTD_INCLUDE.