bugfix: fix emacs support on macOS (#16110)

- fix missing self.spec
This commit is contained in:
Todd Gamblin 2020-04-16 17:40:37 -07:00 committed by GitHub
parent 4d25632e59
commit e476a9061b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ class Emacs(AutotoolsPackage, GNUMirrorPackage):
def setup_build_environment(self, env): def setup_build_environment(self, env):
# on macOS, emacs' config does search hard enough for ncurses' # on macOS, emacs' config does search hard enough for ncurses'
# termlib `-ltinfo` lib, which results in linker errors # termlib `-ltinfo` lib, which results in linker errors
if '+termlib' in spec['ncurses']: if '+termlib' in self.spec['ncurses']:
env.append_flags('LDFLAGS', '-ltinfo') env.append_flags('LDFLAGS', '-ltinfo')
def configure_args(self): def configure_args(self):