Pass blas flags to hsl lflags when ^coinhsl+blas (#30309)
This commit is contained in:
parent
ed7812b8be
commit
6df71118fb
@ -109,14 +109,19 @@ def configure_args(self):
|
|||||||
"--with-mumps-cflags=%s" % mumps_dir.include])
|
"--with-mumps-cflags=%s" % mumps_dir.include])
|
||||||
|
|
||||||
if 'coinhsl' in spec:
|
if 'coinhsl' in spec:
|
||||||
|
hsl_ld_flags = '-ldl {0}'.format(spec['coinhsl'].libs.ld_flags)
|
||||||
|
|
||||||
|
if spec.satisfies('^coinhsl+blas'):
|
||||||
|
hsl_ld_flags += ' {0}'.format(spec['blas'].libs.ld_flags)
|
||||||
|
|
||||||
if spec.satisfies('@:3.12.13'):
|
if spec.satisfies('@:3.12.13'):
|
||||||
args.extend([
|
args.extend([
|
||||||
'--with-hsl-lib=%s' % spec['coinhsl'].libs.ld_flags,
|
'--with-hsl-lib=%s' % hsl_ld_flags,
|
||||||
'--with-hsl-incdir=%s' % spec['coinhsl'].prefix.include])
|
'--with-hsl-incdir=%s' % spec['coinhsl'].prefix.include])
|
||||||
else:
|
else:
|
||||||
args.extend([
|
args.extend([
|
||||||
"--with-hsl",
|
"--with-hsl",
|
||||||
"--with-hsl-lflags=%s" % spec['coinhsl'].libs.ld_flags,
|
"--with-hsl-lflags=%s" % hsl_ld_flags,
|
||||||
"--with-hsl-cflags=%s" % spec['coinhsl'].prefix.include])
|
"--with-hsl-cflags=%s" % spec['coinhsl'].prefix.include])
|
||||||
|
|
||||||
if 'metis' in spec:
|
if 'metis' in spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user