Add PGI runtime libs to LDFLAGS when '%pgi' in spec.
This commit is contained in:
parent
f2c523db1e
commit
31c3ef8ea2
@ -90,6 +90,13 @@ def configure_args(self):
|
||||
'-g' if '+debug' in spec else '',
|
||||
]
|
||||
|
||||
config_ldflags = []
|
||||
# PGI runtime libraries
|
||||
if '%pgi' in spec:
|
||||
config_ldflags.append('-pgf90libs')
|
||||
if '+parmetis' in spec:
|
||||
config_ldflags.append('-L{0}'.format(spec['metis'].prefix.lib))
|
||||
|
||||
if '+shared' in spec:
|
||||
config_args.extend([
|
||||
'RANLIB=echo',
|
||||
@ -111,7 +118,6 @@ def configure_args(self):
|
||||
'--with-parmetis-libdir={0}'.format(parmetis_prefix.lib),
|
||||
'--with-parmetis-incdir={0}'.format(parmetis_prefix.include),
|
||||
'--with-incdirs=-I{0}'.format(spec['metis'].prefix.include),
|
||||
'--with-ldflags=-L{0}'.format(spec['metis'].prefix.lib)
|
||||
])
|
||||
if '+int64' in spec['metis']:
|
||||
config_args.append('--with-id-type=ulong')
|
||||
@ -142,7 +148,8 @@ def configure_args(self):
|
||||
config_args.extend([
|
||||
'--with-cflags={0}'.format(' '.join(config_cflags)),
|
||||
'--with-cxxflags={0}'.format(' '.join(config_cflags)),
|
||||
'--with-fcflags={0}'.format(' '.join(config_fcflags))
|
||||
'--with-fcflags={0}'.format(' '.join(config_fcflags)),
|
||||
'--with-ldflags={0}'.format(' '.join(config_ldflags))
|
||||
])
|
||||
return config_args
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user