Browse Source
Depending on the Linux distro, ncurses may be built with tinfo as a separate library that needs to be explicitly linked, or it may not. Trying to pass -ltinfo when you don't need to might cause a linking error. Failing to pass -ltinfo when you need to might cause a linking error. And you might need to pass -ltinfow instead of -ltinfo, or you might not. And if you get that wrong, you might cause a linking error. This commit adds use pkg-config to the tool build script, attempting to discover what args to use. This is only done on Linux. On other platforms, or if pkg-config returns an error, we use the same hard-coded options as before: -lncursesw -lformw This probably adds about 5 or 10 milliseconds to the execution time of the tool script.master

1 changed files with 17 additions and 1 deletions
Loading…
Reference in new issue