diff --git a/easybuild/easyblocks/g/gcc.py b/easybuild/easyblocks/g/gcc.py index 0a6892994ce..707e2115553 100644 --- a/easybuild/easyblocks/g/gcc.py +++ b/easybuild/easyblocks/g/gcc.py @@ -307,7 +307,8 @@ def configure_step(self): # #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2" gcc_config_headers = glob.glob(os.path.join('gcc', 'config', '*', '*linux*.h')) regex_subs = [('(_DYNAMIC_LINKER.*[":])/lib', r'\1%s/lib' % sysroot)] - apply_regex_substitutions(gcc_config_headers, regex_subs) + for gcc_config_header in gcc_config_headers: + apply_regex_substitutions(gcc_config_header, regex_subs) # self.configopts will be reused in a 3-staged build, # configopts is only used in first configure