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
```
This commit is contained in:
Glenn Johnson 2021-01-18 12:57:15 -06:00 committed by GitHub
parent 8f5651e63e
commit 5fb647d17c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ class Imagemagick(AutotoolsPackage):
depends_on('jpeg') depends_on('jpeg')
depends_on('pango') depends_on('pango')
depends_on('libtool', type='build') depends_on('libtool', type='build')
depends_on('libtool', when='@7.0.8:', type=('build', 'link'))
depends_on('libpng') depends_on('libpng')
depends_on('freetype') depends_on('freetype')
depends_on('fontconfig') depends_on('fontconfig')