diff options
author | Michael Kuhn <suraia@ikkoku.de> | 2017-04-05 21:50:42 +0200 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-05 14:50:42 -0500 |
commit | a8137648749abbd517106bb98ec6b291c6215499 (patch) | |
tree | 2dbc8e9bf3a9926e187e61d6e3e8bb5054635ab9 | |
parent | 9dcd6052cb004324472ccd5c21d7f337cbed9f23 (diff) | |
download | spack-a8137648749abbd517106bb98ec6b291c6215499.tar.gz spack-a8137648749abbd517106bb98ec6b291c6215499.tar.bz2 spack-a8137648749abbd517106bb98ec6b291c6215499.tar.xz spack-a8137648749abbd517106bb98ec6b291c6215499.zip |
Fix libxpm (#3704)
It tries to use gettext but fails because it does not explicitly link
against libintl.
-rw-r--r-- | var/spack/repos/builtin/packages/libxpm/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libxpm/package.py b/var/spack/repos/builtin/packages/libxpm/package.py index cfb269db7f..ea30a1c741 100644 --- a/var/spack/repos/builtin/packages/libxpm/package.py +++ b/var/spack/repos/builtin/packages/libxpm/package.py @@ -37,8 +37,13 @@ class Libxpm(AutotoolsPackage): version('3.5.8', '2d81d6633e67ac5562e2fbee126b2897') version('3.5.7', '7bbc8f112f7143ed6961a58ce4e14558') + depends_on('gettext') depends_on('libx11') depends_on('xproto', type='build') depends_on('pkg-config@0.9.0:', type='build') depends_on('util-macros', type='build') + + def setup_environment(self, spack_env, run_env): + spack_env.set('LDFLAGS', '-L{0} -lintl'.format( + self.spec['gettext'].prefix.lib)) |