Build libtinfo.so "--with-versioned-syms" when it is enabled in ncurses. (#18511)

Many system-installed binaries (at least in Debian) are built against a
libtinfo.so that has versioned symbols. If spack builds a version without this
functionality, and it winds up in the user's LD_LIBRARY_PATH via spack load,
system binaries will begin to complain.

```
$ less log.txt
less: /opt/spack/.../libtinfo.so.6: no version information available (required by less)
```

Co-authored-by: Luke D'Alessandro <ldalessa@uw.edu>
This commit is contained in:
Luke Dalessandro 2020-09-04 13:54:44 -07:00 committed by GitHub
parent f4d3a1a0cb
commit 8e41208c65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,8 @@ def configure(self, spec, prefix):
opts.extend(('--with-termlib',
'--enable-termcap',
'--enable-getcap',
'--enable-tcap-names'))
'--enable-tcap-names',
'--with-versioned-syms'))
prefix = '--prefix={0}'.format(prefix)