summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
index 88c2faeb6a..e5d9f9a390 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -1174,7 +1174,7 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage, CompilerPackage):
os.path.exists(os.path.join(header_dir, h))
for h in libc.package_class.representative_headers
):
- relocation_args.append(f"-isystem {header_dir}")
+ relocation_args.append(f"-idirafter {header_dir}")
else:
tty.warn(
f"Cannot relocate {specs_file} include directories, "