adjust compilation settings to link in plumed library statically and all its dependencies

This commit is contained in:
Axel Kohlmeyer
2018-11-02 22:52:36 -04:00
parent df3390e224
commit 54c52c3bdf
4 changed files with 56 additions and 27 deletions

View File

@ -156,7 +156,6 @@ if buildflag:
if not checkmd5sum(checksums[version],filename):
error("Checksum for plumed2 library does not match")
print("Unpacking plumed2 tarball ...")
if os.path.exists("%s/plumed2-%s" % (homepath,version)):
cmd = 'rm -rf "%s/plumed2-%s"' % (homepath,version)
@ -188,3 +187,7 @@ if linkflag:
subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
cmd = 'ln -s "%s/plumed2/lib" liblink' % homepath
subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
if os.path.isfile("Makefile.lammps.static"):
print("Creating Makefile.lammps")
cmd = 'cat liblink/plumed/src/lib/Plumed.inc.static Makefile.lammps.static > Makefile.lammps'