lhapdf: add gettext libs explicitly (#31555)

Co-authored-by: Valentin Volkl <valentin.volkl@cern.ch>
This commit is contained in:
haralmha 2022-07-18 10:25:08 +02:00 committed by GitHub
parent ad4f551c22
commit c589f97cf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,9 +34,11 @@ class Lhapdf(AutotoolsPackage):
extends('python', when='+python')
depends_on('py-cython', type='build', when='+python')
depends_on('py-setuptools', type='build', when='+python')
depends_on('gettext', type='build', when='+python')
def configure_args(self):
args = ['FCFLAGS=-O3', 'CFLAGS=-O3', 'CXXFLAGS=-O3',
'LIBS=-L' + self.spec['python'].prefix.lib]
'LIBS=-L' + self.spec['python'].prefix.lib +
' -L' + self.spec['gettext'].prefix.lib]
args.extend(self.enable_or_disable('python'))
return args