Fix for SPACK-35: Fortran not working properly

- Spack needed symlinks in env for fortran compilers.
- 'fc' is a bash bulitin, so can't use it for fortran compiler.
  - switched to 'f90' for this.

- mpich 3 builds with fortran now.
  - enabled shared libs in mpich package
This commit is contained in:
Todd Gamblin
2014-07-09 01:28:23 -07:00
parent bd8838ca6d
commit 5f8724650a
7 changed files with 10 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ def set_compiler_environment_variables(pkg):
os.environ['CC'] = 'cc'
os.environ['CXX'] = 'c++'
os.environ['F77'] = 'f77'
os.environ['FC'] = 'fc'
os.environ['FC'] = 'f90'
# Set SPACK compiler variables so that our wrapper knows what to call
if compiler.cc:
@@ -173,6 +173,7 @@ def set_module_variables_for_package(pkg):
m.std_cmake_args.append('-DCMAKE_FIND_FRAMEWORK=LAST')
# Emulate some shell commands for convenience
m.pwd = os.getcwd
m.cd = os.chdir
m.mkdir = os.mkdir
m.makedirs = os.makedirs