diff options
author | Glenn Johnson <glenn-johnson@uiowa.edu> | 2021-11-15 04:08:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-15 11:08:48 +0100 |
commit | 5e8368d0c9580a4a3e0a759953507b9ced07c713 (patch) | |
tree | 01b9079adbf85d1e339a6950e6fc0da0eac69b57 /var | |
parent | c91b2b42a8652feec7ca86e30070f644b2ad52ef (diff) | |
download | spack-5e8368d0c9580a4a3e0a759953507b9ced07c713.tar.gz spack-5e8368d0c9580a4a3e0a759953507b9ced07c713.tar.bz2 spack-5e8368d0c9580a4a3e0a759953507b9ced07c713.tar.xz spack-5e8368d0c9580a4a3e0a759953507b9ced07c713.zip |
libint: fix build (#27426)
- use project autogen.sh script
- set boost path
- make sure to build the compiler before the library
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libint/package.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/libint/package.py b/var/spack/repos/builtin/packages/libint/package.py index 8f6ecfec17..d44eaa44fe 100644 --- a/var/spack/repos/builtin/packages/libint/package.py +++ b/var/spack/repos/builtin/packages/libint/package.py @@ -74,9 +74,7 @@ class Libint(AutotoolsPackage): 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 @@ class Libint(AutotoolsPackage): 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 @@ class Libint(AutotoolsPackage): 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( |