diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2017-10-03 22:58:28 +0200 |
---|---|---|
committer | Christoph Junghans <christoph.junghans@gmail.com> | 2017-10-03 14:58:28 -0600 |
commit | ba06eb72d090b8df4f4f1c7c368a87bc52777b47 (patch) | |
tree | bc245ebb761b3446f32577bcdb34a851fe8716be /var | |
parent | 3e79872ada25171452c64361057c922498699b22 (diff) | |
download | spack-ba06eb72d090b8df4f4f1c7c368a87bc52777b47.tar.gz spack-ba06eb72d090b8df4f4f1c7c368a87bc52777b47.tar.bz2 spack-ba06eb72d090b8df4f4f1c7c368a87bc52777b47.tar.xz spack-ba06eb72d090b8df4f4f1c7c368a87bc52777b47.zip |
libpng: zlib path (#5581)
explicitly set the zlib path for libpng configure.
fixes:
```
[ ... ]
92 checking for memset... yes
93 checking for pow... no
94 checking for pow in -lm... yes
95 checking for clock_gettime... yes
96 checking for zlibVersion in -lz... no
97 checking for z_zlibVersion in -lz... no
>> 98 configure: error: zlib not installed
```
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libpng/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libpng/package.py b/var/spack/repos/builtin/packages/libpng/package.py index e0ac977468..66b4252d6c 100644 --- a/var/spack/repos/builtin/packages/libpng/package.py +++ b/var/spack/repos/builtin/packages/libpng/package.py @@ -51,3 +51,13 @@ class Libpng(AutotoolsPackage): version('1.2.57', 'dfcda3603e29dcc11870c48f838ef75b') depends_on('zlib@1.0.4:') # 1.2.5 or later recommended + + def configure_args(self): + args = [ + # not honored, see + # https://sourceforge.net/p/libpng/bugs/210/#33f1 + # '--with-zlib=' + self.spec['zlib'].prefix, + 'CFLAGS=-I{0}'.format(self.spec['zlib'].prefix.include), + 'LDFLAGS=-L{0}'.format(self.spec['zlib'].prefix.lib) + ] + return args |