summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-04-21 11:21:35 +0200
committerGitHub <noreply@github.com>2022-04-21 11:21:35 +0200
commitac9bd3d72d7a4ed49e5bbdd3f07a4fdf91f8d0ce (patch)
treea316a1e187542a0216d543d052ae9b2e946e1054
parent7118602251c5c9238310261a15f211544cd82f90 (diff)
downloadspack-ac9bd3d72d7a4ed49e5bbdd3f07a4fdf91f8d0ce.tar.gz
spack-ac9bd3d72d7a4ed49e5bbdd3f07a4fdf91f8d0ce.tar.bz2
spack-ac9bd3d72d7a4ed49e5bbdd3f07a4fdf91f8d0ce.tar.xz
spack-ac9bd3d72d7a4ed49e5bbdd3f07a4fdf91f8d0ce.zip
openssh: no pie for %nvhpc (#30189)
-rw-r--r--var/spack/repos/builtin/packages/openssh/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openssh/package.py b/var/spack/repos/builtin/packages/openssh/package.py
index 671af44eae..c7496d93e5 100644
--- a/var/spack/repos/builtin/packages/openssh/package.py
+++ b/var/spack/repos/builtin/packages/openssh/package.py
@@ -67,6 +67,10 @@ class Openssh(AutotoolsPackage):
# least newer versions want to create the directory during the
# install step and fail if they cannot do so.
args = ['--with-privsep-path={0}'.format(self.prefix.var.empty)]
+
+ # Somehow creating pie executables fails with nvhpc, not with gcc.
+ if '%nvhpc' in self.spec:
+ args.append('--without-pie')
return args
def install(self, spec, prefix):