[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>
This commit is contained in:
parent
6947951aaf
commit
4ef33a4cd7
@ -490,6 +490,7 @@ def configure_args(self):
|
|||||||
# More info at: https://gcc.gnu.org/install/configure.html
|
# More info at: https://gcc.gnu.org/install/configure.html
|
||||||
for dep_str in ('mpfr', 'gmp', 'mpc', 'isl'):
|
for dep_str in ('mpfr', 'gmp', 'mpc', 'isl'):
|
||||||
if dep_str not in spec:
|
if dep_str not in spec:
|
||||||
|
options.append('--without-{0}'.format(dep_str))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
dep_spec = spec[dep_str]
|
dep_spec = spec[dep_str]
|
||||||
|
Loading…
Reference in New Issue
Block a user