From febeca2b0544199580d50d822d982a31c8801995 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 21 Apr 2021 18:25:14 +0200 Subject: [PATCH] Fix GCC with zstd on CCentOS 7 where it doesn't consider the lib64 directory (#23169) --- var/spack/repos/builtin/packages/gcc/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index 4314b70a5b..c1f5393bf1 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -464,7 +464,10 @@ def configure_args(self): options.append('--with-system-zlib') if 'zstd' in spec: - options.append('--with-zstd={0}'.format(spec['zstd'].prefix)) + options.append('--with-zstd-include={0}'.format( + spec['zstd'].headers.directories[0])) + options.append('--with-zstd-lib={0}'.format( + spec['zstd'].libs.directories[0])) # Enabling language "jit" requires --enable-host-shared. if 'languages=jit' in spec: