libint: fix build (#27426)
- use project autogen.sh script - set boost path - make sure to build the compiler before the library
This commit is contained in:
parent
c91b2b42a8
commit
5e8368d0c9
@ -74,9 +74,7 @@ def url_for_version(self, version):
|
||||
return "{0}/v{1}.tar.gz".format(base_url, version)
|
||||
|
||||
def autoreconf(self, spec, prefix):
|
||||
libtoolize()
|
||||
aclocal('-I', 'lib/autoconf')
|
||||
autoconf()
|
||||
which('bash')('autogen.sh')
|
||||
|
||||
if '@2.6.0:' in spec:
|
||||
# skip tarball creation and removal of dir with generated code
|
||||
@ -104,7 +102,10 @@ def setup_build_environment(self, env):
|
||||
|
||||
def configure_args(self):
|
||||
|
||||
config_args = ['--enable-shared']
|
||||
config_args = [
|
||||
'--enable-shared',
|
||||
'--with-boost={0}'.format(self.spec['boost'].prefix)
|
||||
]
|
||||
|
||||
# Optimization flag names have changed in libint 2
|
||||
if self.version < Version('2.0.0'):
|
||||
@ -185,16 +186,18 @@ def build(self, spec, prefix):
|
||||
packages (CP2K notably).
|
||||
"""
|
||||
|
||||
super(Libint, self).build(spec, prefix)
|
||||
|
||||
# upstream says that using configure/make for the generated code
|
||||
# is deprecated and one should use CMake, but with the currently
|
||||
# recent 2.7.0.b1 it still doesn't work
|
||||
# first generate the libint compiler
|
||||
make('export')
|
||||
# now build the library
|
||||
with working_dir(os.path.join(self.build_directory, 'generated')):
|
||||
# straight from the AutotoolsPackage class:
|
||||
config_args = [
|
||||
'--prefix={0}'.format(prefix),
|
||||
'--enable-shared',
|
||||
'--with-boost={0}'.format(self.spec['boost'].prefix),
|
||||
'--with-cxx-optflags={0}'.format(self.optflags),
|
||||
]
|
||||
config_args += self.enable_or_disable(
|
||||
|
Loading…
Reference in New Issue
Block a user