Added shared library capability.
This commit is contained in:
parent
5b22873b3d
commit
c67b922185
@ -11,8 +11,11 @@ class Petsc(Package):
|
||||
version('3.5.3', 'd4fd2734661e89f18ac6014b5dd1ef2f')
|
||||
version('3.5.2', 'ad170802b3b058b5deb9cd1f968e7e13')
|
||||
version('3.5.1', 'a557e029711ebf425544e117ffa44d8f')
|
||||
version('3.4.4', '7edbc68aa6d8d6a3295dd5f6c2f6979d')
|
||||
|
||||
depends_on("python @2.6:2.9") # requires Python for building
|
||||
variant('shared', default=True, description="Build shared library version")
|
||||
|
||||
depends_on("python @2.6:2.7") # requires Python for building
|
||||
|
||||
depends_on("boost")
|
||||
depends_on("blas")
|
||||
@ -33,7 +36,7 @@ def install(self, spec, prefix):
|
||||
"--with-metis-dir=%s" % spec['metis'].prefix,
|
||||
"--with-hdf5-dir=%s" % spec['hdf5'].prefix,
|
||||
"--with-mpi-dir=%s" % spec['mpi'].prefix,
|
||||
"--with-shared-libraries=0")
|
||||
"--with-shared-libraries=%d" % (1 if '+shared' in self.spec else 0))
|
||||
|
||||
# PETSc has its own way of doing parallel make.
|
||||
make('MAKE_NP=%s' % make_jobs, parallel=False)
|
||||
|
Loading…
Reference in New Issue
Block a user