summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorzorun <github@bitsofnetworks.org>2020-12-24 19:39:46 +0100
committerGitHub <noreply@github.com>2020-12-24 19:39:46 +0100
commit4ef33a4cd77311ab0b0b6864d63515c24373fb78 (patch)
treeb6a4983982b03082a224956e971c3d39296d4183 /var
parent6947951aaf9954b1dfd12ca7a9266d7335f07105 (diff)
downloadspack-4ef33a4cd77311ab0b0b6864d63515c24373fb78.tar.gz
spack-4ef33a4cd77311ab0b0b6864d63515c24373fb78.tar.bz2
spack-4ef33a4cd77311ab0b0b6864d63515c24373fb78.tar.xz
spack-4ef33a4cd77311ab0b0b6864d63515c24373fb78.zip
[gcc] Explicitly disable libs when they are not required (#20532)
This is to make sure that the build system doesn't pick up a library that would happen to be available. Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
index 12c6569577..7be4757bf9 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -490,6 +490,7 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
# More info at: https://gcc.gnu.org/install/configure.html
for dep_str in ('mpfr', 'gmp', 'mpc', 'isl'):
if dep_str not in spec:
+ options.append('--without-{0}'.format(dep_str))
continue
dep_spec = spec[dep_str]