zoltan: fix building with Intel compilers (#8985)

* zoltan: fix building with Intel compilers

- building with the Intel compilers may require explicit linking
  with the Intel Fortran library (libifcore)

* simplify code; get rid of format() for static strings
This commit is contained in:
TZ 2018-08-15 17:40:58 +02:00 committed by Adam J. Stewart
parent ce16011427
commit c0699539d5

View file

@ -84,7 +84,9 @@ def install(self, spec, prefix):
config_args.append('--with-ar=$(CXX) -shared $(LDFLAGS) -o') config_args.append('--with-ar=$(CXX) -shared $(LDFLAGS) -o')
config_cflags.append(self.compiler.pic_flag) config_cflags.append(self.compiler.pic_flag)
if spec.satisfies('%gcc'): if spec.satisfies('%gcc'):
config_args.append('--with-libs={0}'.format('-lgfortran')) config_args.append('--with-libs=-lgfortran')
if spec.satisfies('%intel'):
config_args.append('--with-libs=-lifcore')
if '+parmetis' in spec: if '+parmetis' in spec:
config_args.append('--with-parmetis') config_args.append('--with-parmetis')