Plumed: Ensure the Python interfaces are also built with Spack's wrappers. (#20625)
This commit is contained in:
parent
23181d24a2
commit
bef250535a
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue