Plumed: Ensure the Python interfaces are also built with Spack's wrappers. (#20625)

This commit is contained in:
Rémi Lacroix 2021-01-20 21:12:27 +01:00 committed by GitHub
parent 23181d24a2
commit bef250535a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,6 +128,14 @@ def filter_gslcblas(self):
# provided by optimized libraries due to linking order
filter_file('-lgslcblas', '', 'configure.ac')
def patch(self):
# Ensure Spack's wrappers are used to compile the Python interface
env = 'CXX={0} LDSHARED="{0} -pthread -shared" ' \
'LDCXXSHARED="{0} -pthread -shared"'.format(spack_cxx)
filter_file('plumed_program_name=plumed',
'{0} plumed_program_name=plumed'.format(env),
'src/lib/Makefile', 'python/Makefile')
def configure_args(self):
spec = self.spec