From 776256757b3d12830e5449c41f1dd6c13fdf2868 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Tue, 9 Jun 2020 14:05:07 -0600 Subject: When specifying a non-system prefix with --with-zstd, the build fails because the header and library cannot be found (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95005). The attached patch fixes the problem and is what we use in Spack to make GCC build with zstd support. gcc/ * Makefile.in (ZSTD_INC): Define. (ZSTD_LIB): Include ZSTD_LDFLAGS. (CFLAGS-lto-compress.o): Add ZSTD_INC. * configure.ac (ZSTD_CPPFLAGS, ZSTD_LDFLAGS): New variables for AC_SUBST. * configure: Rebuilt. --- gcc/configure | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/configure') diff --git a/gcc/configure b/gcc/configure index 629c7c7..def9d9a 100755 --- a/gcc/configure +++ b/gcc/configure @@ -787,6 +787,8 @@ LTLIBICONV LIBICONV ZSTD_LIB ZSTD_INCLUDE +ZSTD_LDFLAGS +ZSTD_CPPFLAGS DL_LIB LDEXP_LIB EXTRA_GCC_LIBS -- cgit v1.1