openssh: no pie for %nvhpc (#30189)

This commit is contained in:
Harmen Stoppels 2022-04-21 11:21:35 +02:00 committed by GitHub
parent 7118602251
commit ac9bd3d72d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,10 @@ def configure_args(self):
# least newer versions want to create the directory during the # least newer versions want to create the directory during the
# install step and fail if they cannot do so. # install step and fail if they cannot do so.
args = ['--with-privsep-path={0}'.format(self.prefix.var.empty)] 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 return args
def install(self, spec, prefix): def install(self, spec, prefix):