summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-01-18 12:57:15 -0600
committerGitHub <noreply@github.com>2021-01-18 12:57:15 -0600
commit5fb647d17cdcc82e71f8c205c35f2433ab60f303 (patch)
tree6374302c58e8e28ec6352aec53b07677071fe4cf
parent8f5651e63e0e53c9e5557fb0b3c247390f3ee837 (diff)
downloadspack-5fb647d17cdcc82e71f8c205c35f2433ab60f303.tar.gz
spack-5fb647d17cdcc82e71f8c205c35f2433ab60f303.tar.bz2
spack-5fb647d17cdcc82e71f8c205c35f2433ab60f303.tar.xz
spack-5fb647d17cdcc82e71f8c205c35f2433ab60f303.zip
The latest version of imagemagick needs libtool linking (#20969)
Imagemagick-7.0.8 needs to link against libltdl. Otherwise, the build will fail with: ``` 2 errors found in build log: 503 checking for libltdl... 504 checking ltdl.h usability... no 505 checking ltdl.h presence... no 506 checking for ltdl.h... no 507 checking for lt_dlinit in -lltdl... no 508 checking if libltdl package is complete... no >> 509 configure: error: in `/tmp/gpjohnsn/spack-stage/spack-stage-imagemagick-7.0.8-7-4y44gaklhhciiwjzhfpxjfwdj5q ltjp3/spack-src': >> 510 configure: error: libltdl is required for modules and OpenCL builds 511 See `config.log' for more details ```
-rw-r--r--var/spack/repos/builtin/packages/imagemagick/package.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/imagemagick/package.py b/var/spack/repos/builtin/packages/imagemagick/package.py
index e3dea86425..38208f42de 100644
--- a/var/spack/repos/builtin/packages/imagemagick/package.py
+++ b/var/spack/repos/builtin/packages/imagemagick/package.py
@@ -21,6 +21,7 @@ class Imagemagick(AutotoolsPackage):
depends_on('jpeg')
depends_on('pango')
depends_on('libtool', type='build')
+ depends_on('libtool', when='@7.0.8:', type=('build', 'link'))
depends_on('libpng')
depends_on('freetype')
depends_on('fontconfig')