summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py5
1 files changed, 4 insertions, 1 deletions
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 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
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: