diff options
-rw-r--r-- | var/spack/repos/builtin/packages/emacs/package.py | 7 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/ncurses/package.py | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/emacs/package.py b/var/spack/repos/builtin/packages/emacs/package.py index d073157826..6842e79043 100644 --- a/var/spack/repos/builtin/packages/emacs/package.py +++ b/var/spack/repos/builtin/packages/emacs/package.py @@ -47,6 +47,13 @@ class Emacs(AutotoolsPackage, GNUMirrorPackage): depends_on('gnutls', when='+tls') depends_on('jpeg') + @when('platform=darwin') + def setup_build_environment(self, env): + # on macOS, emacs' config does search hard enough for ncurses' + # termlib `-ltinfo` lib, which results in linker errors + if '+termlib' in spec['ncurses']: + env.append_flags('LDFLAGS', '-ltinfo') + def configure_args(self): spec = self.spec diff --git a/var/spack/repos/builtin/packages/ncurses/package.py b/var/spack/repos/builtin/packages/ncurses/package.py index 85fd9d68f8..cfb122623d 100644 --- a/var/spack/repos/builtin/packages/ncurses/package.py +++ b/var/spack/repos/builtin/packages/ncurses/package.py @@ -28,7 +28,8 @@ class Ncurses(AutotoolsPackage, GNUMirrorPackage): variant('symlinks', default=False, description='Enables symlinks. Needed on AFS filesystem.') variant('termlib', default=True, - description='Enables termlib needs for gnutls in emacs.') + description='Enables termlib features. This is an extra ' + 'lib and optional internal dependency.') depends_on('pkgconfig', type='build') |