minighost: fix build on Ubuntu (#7354)
* minighost: fix build on Ubuntu * minighost: append -lgfortran only for gcc
This commit is contained in:
parent
6c2fe27f41
commit
3089207ced
1 changed files with 4 additions and 3 deletions
|
@ -55,16 +55,17 @@ def build_targets(self):
|
|||
targets.append('PROTOCOL=-D_MG_MPI')
|
||||
targets.append('FC={0}'.format(self.spec['mpi'].mpif77))
|
||||
targets.append('CC={0}'.format(self.spec['mpi'].mpicc))
|
||||
targets.append(
|
||||
'LIBS=-lm -lmpi_cxx')
|
||||
else:
|
||||
targets.append('PROTOCOL=-D_MG_SERIAL')
|
||||
targets.append('FC=f77')
|
||||
targets.append('CC=cc')
|
||||
targets.append('LIBS=-lm -lgfortran')
|
||||
|
||||
if '%gcc' in self.spec:
|
||||
targets.append('COMPILER_SUITE=gnu')
|
||||
if '+mpi' in self.spec:
|
||||
targets.append('LIBS=-lm -lmpi_cxx -lgfortran')
|
||||
else:
|
||||
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