summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-08-29 06:51:14 -0700
committerGitHub <noreply@github.com>2016-08-29 06:51:14 -0700
commit31cab4bae2e9a0a868a972bfe6ebffce713975cc (patch)
treedc45cbd399194ad2be2f69252f77543e408d9bc1
parentf5c9a8c2ee72244e8a8fb11a07880d5c962aad42 (diff)
parent66ea42f8d75dfd3302a6172c631288be39728365 (diff)
downloadspack-31cab4bae2e9a0a868a972bfe6ebffce713975cc.tar.gz
spack-31cab4bae2e9a0a868a972bfe6ebffce713975cc.tar.bz2
spack-31cab4bae2e9a0a868a972bfe6ebffce713975cc.tar.xz
spack-31cab4bae2e9a0a868a972bfe6ebffce713975cc.zip
Merge pull request #1619 from davydden/pkg/nwchem_macos_fix
nwchem: use basename for CC and FC
-rw-r--r--var/spack/repos/builtin/packages/nwchem/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nwchem/package.py b/var/spack/repos/builtin/packages/nwchem/package.py
index 0dcd249f74..13c710a35a 100644
--- a/var/spack/repos/builtin/packages/nwchem/package.py
+++ b/var/spack/repos/builtin/packages/nwchem/package.py
@@ -24,6 +24,7 @@
##############################################################################
from spack import *
import sys
+import os
class Nwchem(Package):
@@ -69,6 +70,10 @@ class Nwchem(Package):
args = []
args.extend([
'NWCHEM_TOP=%s' % self.stage.source_path,
+ # NWCHEM is picky about FC and CC. They should NOT be full path.
+ # see http://www.nwchem-sw.org/index.php/Special:AWCforum/sp/id7524
+ 'CC=%s' % os.path.basename(spack_cc),
+ 'FC=%s' % os.path.basename(spack_fc),
'USE_MPI=y',
'MPI_LOC=%s' % spec['mpi'].prefix,
'USE_PYTHONCONFIG=y',