diff options
-rw-r--r-- | var/spack/repos/builtin/packages/tau/package.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py index 1801b41c37..d6b0a98d67 100644 --- a/var/spack/repos/builtin/packages/tau/package.py +++ b/var/spack/repos/builtin/packages/tau/package.py @@ -24,7 +24,7 @@ ############################################################################## from spack import * import os -import os.path +import glob from llnl.util.filesystem import join_path @@ -146,3 +146,8 @@ class Tau(Package): dest = join_path(self.prefix, d) if os.path.isdir(src) and not os.path.exists(dest): os.symlink(join_path(subdir, d), dest) + + def setup_environment(self, spack_env, run_env): + pattern = join_path(self.prefix.lib, 'Makefile.*') + files = glob.glob(pattern) + run_env.set('TAU_MAKEFILE', files[0]) |