https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95005
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Michael Kuhn from comment #2) > (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. You are right! It should be actually added to CXXFLAGS that are not respected in gcc/Makefile: https://github.com/gcc-mirror/gcc/blob/master/gcc/configure.ac#L1380 I'm investigating that.