pvm: add fpic variant (#24954)
This commit is contained in:
parent
19677c5ad1
commit
4d5f7b361e
@ -21,6 +21,9 @@ class Pvm(MakefilePackage):
|
|||||||
depends_on('m4', type='build')
|
depends_on('m4', type='build')
|
||||||
depends_on('libtirpc', type='link')
|
depends_on('libtirpc', type='link')
|
||||||
|
|
||||||
|
variant('fpic', default=False,
|
||||||
|
description='Enables -fPIC compilation flag on static libraries.')
|
||||||
|
|
||||||
parallel = False
|
parallel = False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -34,6 +37,17 @@ def edit(self, spec, prefix):
|
|||||||
# variable "PVM_ROOT" to the path where PVM resides
|
# variable "PVM_ROOT" to the path where PVM resides
|
||||||
env['PVM_ROOT'] = self.stage.source_path
|
env['PVM_ROOT'] = self.stage.source_path
|
||||||
|
|
||||||
|
def patch(self):
|
||||||
|
|
||||||
|
pvm_arch = self.pvm_arch
|
||||||
|
|
||||||
|
if '+fpic' in self.spec:
|
||||||
|
filter_file(
|
||||||
|
'^SHAREDCFLAGS =',
|
||||||
|
'SHAREDCFLAGS = -fPIC',
|
||||||
|
join_path('conf', pvm_arch + '.def')
|
||||||
|
)
|
||||||
|
|
||||||
def setup_build_environment(self, env):
|
def setup_build_environment(self, env):
|
||||||
tirpc = self.spec['libtirpc'].prefix
|
tirpc = self.spec['libtirpc'].prefix
|
||||||
env.prepend_path(
|
env.prepend_path(
|
||||||
|
Loading…
Reference in New Issue
Block a user