diff options
-rwxr-xr-x | lib/spack/env/cc | 2 | ||||
l--------- | lib/spack/env/f77 | 1 | ||||
l--------- | lib/spack/env/f90 | 1 | ||||
l--------- | lib/spack/env/f95 | 1 | ||||
l--------- | lib/spack/env/fc | 1 | ||||
-rw-r--r-- | lib/spack/spack/build_environment.py | 3 | ||||
-rw-r--r-- | var/spack/packages/mpich/package.py | 4 |
7 files changed, 10 insertions, 3 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index 4478747844..9e71d25caf 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -59,7 +59,7 @@ elif command in ('c++', 'CC', 'g++', 'clang++'): elif command in ('f77'): command = spack_f77 language = "Fortran 77" -elif command in ('fc'): +elif command in ('fc', 'f90', 'f95'): command = spack_fc language = "Fortran 90" elif command in ('ld', 'cpp'): diff --git a/lib/spack/env/f77 b/lib/spack/env/f77 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/lib/spack/env/f77 @@ -0,0 +1 @@ +cc
\ No newline at end of file diff --git a/lib/spack/env/f90 b/lib/spack/env/f90 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/lib/spack/env/f90 @@ -0,0 +1 @@ +cc
\ No newline at end of file diff --git a/lib/spack/env/f95 b/lib/spack/env/f95 new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/lib/spack/env/f95 @@ -0,0 +1 @@ +cc
\ No newline at end of file diff --git a/lib/spack/env/fc b/lib/spack/env/fc new file mode 120000 index 0000000000..2652f5f42c --- /dev/null +++ b/lib/spack/env/fc @@ -0,0 +1 @@ +cc
\ No newline at end of file diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index b9d0c16353..38d5f70282 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -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 diff --git a/var/spack/packages/mpich/package.py b/var/spack/packages/mpich/package.py index af9e8266dc..703614a587 100644 --- a/var/spack/packages/mpich/package.py +++ b/var/spack/packages/mpich/package.py @@ -38,6 +38,8 @@ class Mpich(Package): provides('mpi@:1', when='@1:') def install(self, spec, prefix): - configure("--prefix=" + prefix) + configure( + "--prefix=" + prefix, + "--enable-shared") make() make("install") |