From 139eaa13064c2f8db824abe9c29f26296408ea86 Mon Sep 17 00:00:00 2001 From: t-karatsu <49965247+t-karatsu@users.noreply.github.com> Date: Mon, 30 Sep 2019 22:18:09 +0900 Subject: [PATCH] otf2: add configure args to specify compiler commands. (#12711) * otf2: add configure args to specify compiler commands. * Modify the reference of the compile commands. --- var/spack/repos/builtin/packages/otf2/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/otf2/package.py b/var/spack/repos/builtin/packages/otf2/package.py index bf5f6eb4aa..f163c02dcc 100644 --- a/var/spack/repos/builtin/packages/otf2/package.py +++ b/var/spack/repos/builtin/packages/otf2/package.py @@ -27,6 +27,10 @@ class Otf2(AutotoolsPackage): def configure_args(self): return [ '--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), 'CXXFLAGS={0}'.format(self.compiler.pic_flag) ]