otf2: add configure args to specify compiler commands. (#12711)

* otf2: add configure args to specify compiler commands.

* Modify the reference of the compile commands.
This commit is contained in:
t-karatsu 2019-09-30 22:18:09 +09:00 committed by Adam J. Stewart
parent a12c032509
commit 139eaa1306

View file

@ -27,6 +27,10 @@ class Otf2(AutotoolsPackage):
def configure_args(self): def configure_args(self):
return [ return [
'--enable-shared', '--enable-shared',
'CC={0}'.format(spack_cc),
'CXX={0}'.format(spack_cxx),
'F77={0}'.format(spack_f77),
'FC={0}'.format(spack_fc),
'CFLAGS={0}'.format(self.compiler.pic_flag), 'CFLAGS={0}'.format(self.compiler.pic_flag),
'CXXFLAGS={0}'.format(self.compiler.pic_flag) 'CXXFLAGS={0}'.format(self.compiler.pic_flag)
] ]