rpcsvc-proto: add 'cpp' path for rpcgen (#31157)

This commit is contained in:
Qian Jianhua 2022-06-17 02:24:28 +08:00 committed by GitHub
parent 3b393fe0eb
commit 2e4b533420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,3 +18,10 @@ class RpcsvcProto(AutotoolsPackage):
def configure_args(self):
return ['LIBS=-lintl']
@run_before('build')
def change_makefile(self):
# Add 'cpp' path for rpcgen
filter_file('rpcgen/rpcgen',
'rpcgen/rpcgen -Y {0}/lib/spack/env'.format(spack.paths.spack_root),
'rpcsvc/Makefile')