Changed every 'fpic' variant to 'pic' (#4969)
* Changed every 'fpic' variant to 'pic'. fixes #2463 Every variant that activates compilation of position independent code has been changed to 'pic'. Hardcoded compiler flags in packages have been substituted with `self.compiler.pic_flag`. * Changed literal uses of '-fpic' to 'self.compiler.pic_flag'
This commit is contained in:

committed by
GitHub

parent
452f382293
commit
9be294de31
@@ -41,4 +41,8 @@ class Otf2(AutotoolsPackage):
|
||||
version('1.2.1', '8fb3e11fb7489896596ae2c7c83d7fc8')
|
||||
|
||||
def configure_args(self):
|
||||
return ["--enable-shared", "CFLAGS=-fPIC", "CXXFLAGS=-fPIC"]
|
||||
return [
|
||||
'--enable-shared',
|
||||
'CFLAGS={0}'.format(self.compiler.pic_flag),
|
||||
'CXXFLAGS={0}'.format(self.compiler.pic_flag)
|
||||
]
|
||||
|
Reference in New Issue
Block a user