diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-04-27 15:52:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 15:52:28 +0200 |
commit | 8be2f017e74fbbf6eb1c8db5477c57355aff960a (patch) | |
tree | 9ba551a3464eb91c830fffa9783d66bc270a48bc /var | |
parent | f6464abfcbd0a1779060f74f54461d9c7c1bec1a (diff) | |
download | spack-8be2f017e74fbbf6eb1c8db5477c57355aff960a.tar.gz spack-8be2f017e74fbbf6eb1c8db5477c57355aff960a.tar.bz2 spack-8be2f017e74fbbf6eb1c8db5477c57355aff960a.tar.xz spack-8be2f017e74fbbf6eb1c8db5477c57355aff960a.zip |
gcc: no need to special case macos/linux wrt rpaths (#37243)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/gcc/package.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index 6270c9c47a..18e0fe1c04 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -968,12 +968,7 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): # 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)) |