diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index 6270c9c47a5..18e0fe1c043 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -968,12 +968,7 @@ def write_rpath_specs(self): # Add easily-overridable rpath string at the end out.write("*link_libgcc_rpath:\n") - if "platform=darwin" in self.spec: - # macOS linker requires separate rpath commands - out.write(" ".join("-rpath " + lib for lib in rpath_libdirs)) - else: - # linux linker uses colon-separated rpath - out.write("-rpath " + ":".join(rpath_libdirs)) + out.write(" ".join("-rpath " + lib for lib in rpath_libdirs)) out.write("\n") set_install_permissions(specs_file) tty.info("Wrote new spec file to {0}".format(specs_file))