summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-08-04 09:57:06 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-08-04 09:57:06 -0700
commit1792115b4df2f6ecca18bddf462ccd4a618d9698 (patch)
tree1fe997e9f496f4bc3f8f3be5cd99bde72803952d
parent7d80983362f9eb51544481b8bde07a9901512d3c (diff)
downloadspack-1792115b4df2f6ecca18bddf462ccd4a618d9698.tar.gz
spack-1792115b4df2f6ecca18bddf462ccd4a618d9698.tar.bz2
spack-1792115b4df2f6ecca18bddf462ccd4a618d9698.tar.xz
spack-1792115b4df2f6ecca18bddf462ccd4a618d9698.zip
Use absolute paths to spack compiler wrappers in CC/CXX/F77/FC
-rw-r--r--lib/spack/spack/build_environment.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index 81fbedc689..a133faa629 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -88,10 +88,10 @@ def set_compiler_environment_variables(pkg):
compiler = pkg.compiler
# Set compiler variables used by CMake and autotools
- os.environ['CC'] = 'cc'
- os.environ['CXX'] = 'c++'
- os.environ['F77'] = 'f77'
- os.environ['FC'] = 'f90'
+ os.environ['CC'] = join_path(spack.build_env_path, 'cc')
+ os.environ['CXX'] = join_path(spack.build_env_path, 'c++')
+ os.environ['F77'] = join_path(spack.build_env_path, 'f77')
+ os.environ['FC'] = join_path(spack.build_env_path, 'f90')
# Set SPACK compiler variables so that our wrapper knows what to call
if compiler.cc: