minighost: rework link logic (#7402)
This commit is contained in:
parent
b0795d84c7
commit
360feb4193
1 changed files with 3 additions and 5 deletions
|
@ -54,7 +54,8 @@ def build_targets(self):
|
|||
if '+mpi' in self.spec:
|
||||
targets.append('PROTOCOL=-D_MG_MPI')
|
||||
targets.append('FC={0}'.format(self.spec['mpi'].mpif77))
|
||||
targets.append('CC={0}'.format(self.spec['mpi'].mpicc))
|
||||
# CC is only used for linking, use it to pull in the right f77 libs
|
||||
targets.append('CC={0}'.format(self.spec['mpi'].mpif77))
|
||||
else:
|
||||
targets.append('PROTOCOL=-D_MG_SERIAL')
|
||||
targets.append('FC=f77')
|
||||
|
@ -62,10 +63,7 @@ def build_targets(self):
|
|||
|
||||
if '%gcc' in self.spec:
|
||||
targets.append('COMPILER_SUITE=gnu')
|
||||
if '+mpi' in self.spec:
|
||||
targets.append('LIBS=-lm -lmpi_f77 -lmpi -lgfortran')
|
||||
else:
|
||||
targets.append('LIBS=-lm -lgfortran')
|
||||
targets.append('LIBS=-lm -lgfortran')
|
||||
elif '%cce' in self.spec:
|
||||
targets.append('COMPILER_SUITE=cray')
|
||||
elif '%intel' in self.spec:
|
||||
|
|
Loading…
Reference in a new issue