Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion easybuild/easyblocks/g/gcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def extra_options():
'pplwatchdog': [False, "Enable PPL watchdog", CUSTOM],
'prefer_lib_subdir': [False, "Configure GCC to prefer 'lib' subdirs over 'lib64' when linking", CUSTOM],
'profiled': [False, "Bootstrap GCC with profile-guided optimizations", CUSTOM],
'set_library_path': [False, "Set LIBRARY_PATH in final module file", CUSTOM],
'use_gold_linker': [None, "Configure GCC to use GOLD as default linker "
"(default: enable automatically for GCC < 11.3.0, except on RISC-V)", CUSTOM],
'withcloog': [False, "Build GCC with CLooG support", CUSTOM],
Expand Down Expand Up @@ -195,7 +196,7 @@ def __init__(self, *args, **kwargs):
# unset some environment variables that are known to may cause nasty build errors when bootstrapping
self.cfg.update('unwanted_env_vars', ['CPATH', 'C_INCLUDE_PATH', 'CPLUS_INCLUDE_PATH', 'OBJC_INCLUDE_PATH'])
# ubuntu needs the LIBRARY_PATH env var to work apparently (#363)
if get_os_name() not in ['ubuntu', 'debian']:
if get_os_name() not in ['ubuntu', 'debian'] and not self.cfg['set_library_path']:
self.cfg.update('unwanted_env_vars', ['LIBRARY_PATH'])

# disable NVPTX on RISC-V
Expand Down